summaryrefslogtreecommitdiffstats
path: root/stream/stream_dvd.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2008-10-04 07:21:21 +0300
committerUoti Urpala <uau@glyph.nonexistent.invalid>2008-10-04 07:37:18 +0300
commit0a674354b714248722d070c9a6dbafbde1a19557 (patch)
tree6e1c2238fe34cffc6464558bfae54104c1d7a1ce /stream/stream_dvd.c
parente7a611de0058bb48bfe75dd86f28c9ea3f3288c5 (diff)
downloadmpv-0a674354b714248722d070c9a6dbafbde1a19557.tar.bz2
mpv-0a674354b714248722d070c9a6dbafbde1a19557.tar.xz
demux: Reset demux stream 'eof' flag after packet buffer overflow
The eof flag is set when another demuxer stream has hit the limit on the size or count of buffered packets. This makes sense because in that error situation the calling code can not rely on being able to demux more packets from this stream, so it should rather exit or whatever instead of getting stuck trying. However the situation can improve if packets are demuxed from the other stream. In that case the eof flag should be cleared. This commit adds code to clear the flag if something is successfully read from the stream (so it's only cleared if a caller tries to read packets despite the flag being set; that's enough to fix audio sync issues after video packet buffer overflow).
Diffstat (limited to 'stream/stream_dvd.c')
0 files changed, 0 insertions, 0 deletions