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:
parent
9f5b9011d6
commit
daa3c11e1b
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user