summaryrefslogtreecommitdiffstats
path: root/demux/codec_tags.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-07-19 12:19:12 +0200
committerwm4 <wm4@nowhere>2014-07-19 12:27:21 +0200
commit24efaa3ad7a2a23644a1872c6b9535342bc71df1 (patch)
treeb97347bba6120d24c48721d34a3b637ceaae0ca9 /demux/codec_tags.c
parentc76958d20c69fa83af7ae433f667b40d2734e504 (diff)
downloadmpv-24efaa3ad7a2a23644a1872c6b9535342bc71df1.tar.bz2
mpv-24efaa3ad7a2a23644a1872c6b9535342bc71df1.tar.xz
demux: fix a corner case
demux_read_any_packet() attempts to call read_packet(), but if no stream is active, it can decide not to read anything. The function will return NULL, which implies EOF. Fix this by explicitly setting demux_stream->active if needed. Also use dequeue_packet() instead of demux_read_packet(), because it's cleaner. (Shouldn't change behavior.) Possibly fixes #938.
Diffstat (limited to 'demux/codec_tags.c')
0 files changed, 0 insertions, 0 deletions