1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-25 04:38:01 +00:00

ytdl_hook: add length parameter to delay-loaded tracks only once

This was done for each media type, so muxed tracks had it twice, which
logged a dumb warning. Move it out of the per-media type loop.
This commit is contained in:
wm4 2020-02-21 12:06:18 +01:00
parent 9f5b9011d6
commit daa3c11e1b

View File

@ -416,10 +416,10 @@ local function formats_to_edl(json, formats, use_all_formats)
end
hdr[#hdr + 1] = "!track_meta,title=" ..
edl_escape(title) .. ",byterate=" .. byterate
end
if duration > 0 then
params = params .. ",length=" .. duration
end
if duration > 0 then
params = params .. ",length=" .. duration
end
end