~guidocella/mpv-image-config

5f56f571e320a6c0849422b112a83b44d8d38864 — Guido Cella 7 months ago 35cc19a
enable double-page-mode faster

By not switching to the new video track unnecessarily.
1 files changed, 1 insertions(+), 2 deletions(-)

M scripts/image-bindings.lua
M scripts/image-bindings.lua => scripts/image-bindings.lua +1 -2
@@ 143,11 143,10 @@ mp.register_script_message('double-page-mode', function()
        return
    end

    mp.commandv('video-add', previous)
    mp.commandv('video-add', previous, 'auto')
    local track_list = mp.get_property_native('track-list')

    if track_list[1]['demux-w'] ~= track_list[2]['demux-w'] or track_list[1]['demux-h'] ~= track_list[2]['demux-h'] then
        mp.set_property('vid', 1)
        mp.command('video-remove 2')
        local error = 'The 2 images must have the same dimensions.'
        mp.msg.error(error)