diff options
author | wm4 <wm4@nowhere> | 2014-07-19 12:19:12 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-07-19 12:27:21 +0200 |
commit | 24efaa3ad7a2a23644a1872c6b9535342bc71df1 (patch) | |
tree | b97347bba6120d24c48721d34a3b637ceaae0ca9 /input | |
parent | c76958d20c69fa83af7ae433f667b40d2734e504 (diff) | |
download | mpv-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 'input')
0 files changed, 0 insertions, 0 deletions