summaryrefslogtreecommitdiffstats
path: root/player/playloop.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-05-24 02:03:12 +0200
committerwm4 <wm4@nowhere>2019-09-19 20:37:04 +0200
commite2ae3676c2e30a7665642f9f7912544cc2dd44f1 (patch)
tree808c057827d8020a48608d1bc0c90da37bb887ad /player/playloop.c
parenta3ac2019eddbfa7d763c6da808c1cf0ebda18c53 (diff)
downloadmpv-e2ae3676c2e30a7665642f9f7912544cc2dd44f1.tar.bz2
mpv-e2ae3676c2e30a7665642f9f7912544cc2dd44f1.tar.xz
demux: remove minor code duplication
This code used to be simpler, but now it's enough that it should be factored into a single function. Both uses of the new function are annoyingly different. The first use is the special case when a decoder tries to read packets, but the demuxer doesn't see any (like mp4 files with sparse video packets, which actually turned out to be chapter thumbnail "tracks"). Then the other stream queues will overflow, and the stream with no packets is marked EOF to avoid stalling playback. The second case is when the demxuer returns global EOF. It would be more awkward to have the loop iterating the streams in the function, because then you'd need a weird parameter to control the behavior.
Diffstat (limited to 'player/playloop.c')
0 files changed, 0 insertions, 0 deletions