mpv/demux
wm4 4e750e31a1 demux: fix/improve aspects of EOF signaling
When the current packet queue was completely empty, and EOF was reached,
the queue->is_eof flag was not correctly set to true. Change this by
reading ds->eof to check whether the stream is considered EOF. We also
need to make sure update_seek_ranges() is called in this case, so change
the code to simply call it when queue->is_eof changes.

Also, read_packet() needs to call adjust_seek_range_on_packet() if
ds->eof changes. In that case, the decoder also needs to be notified
about EOF. So both of these should be called when ds->eof changes to
true. (Other code outside of this function deals with the case when
ds->eof is changed to false.)

In addition, this code was kind of shoddy about calling wakeup_ds()
correctly. It looks like there was an inverted condition, and sent a
wakeup to the decoder only when ds->eof was already true, which is
obviously bogus. The final EOF case tried to be somehow clever about
checking in->last_eof for notifying the codec, which is sort of OK, but
seems to be strictly worse than just checking whether ds->eof changed.
Fix these things.
2018-05-25 10:46:24 +02:00
..
codec_tags.c
codec_tags.h
cue.c cue: strip quotes and leading whitespace from tags 2018-01-30 14:01:15 +01:00
cue.h
demux.c demux: fix/improve aspects of EOF signaling 2018-05-25 10:46:24 +02:00
demux.h demux: support for some kinds of timed metadata 2018-04-18 01:17:42 +03:00
demux_cue.c
demux_disc.c demux_disc: fix bluray subtitle language retrieval 2017-07-16 19:02:35 +02:00
demux_edl.c demux_edl: fix undefined behavior if mp4 init segment is not provided 2018-03-03 02:38:01 +02:00
demux_lavf.c demux_lavf: remove ffm blacklist entry 2018-05-25 10:17:06 +02:00
demux_libarchive.c
demux_mf.c build: switch preliminary LGPL mode from v3 to v2.1 2017-10-05 15:57:30 +02:00
demux_mkv.c demux_mkv: adjust log verbosity levels 2018-04-29 02:21:32 +03:00
demux_mkv_timeline.c
demux_null.c demux_null: mark as seekable 2018-01-06 14:42:22 -08:00
demux_playlist.c demux_playlist: support .url files 2017-11-12 15:51:48 +01:00
demux_rar.c
demux_raw.c
demux_timeline.c demux_timeline: disable pointless packet cache for sub-demuxers 2017-12-10 06:37:49 +02:00
demux_tv.c tv: Recognise v4l2 'JPEG' fourcc 2018-03-04 16:28:24 -08:00
ebml.c demux_mkv: adjust log verbosity levels 2018-04-29 02:21:32 +03:00
ebml.h demux_mkv: rewrite packet reading to avoid 1 memcpy() 2017-11-05 18:13:34 +01:00
matroska.h
packet.c demux: support for some kinds of timed metadata 2018-04-18 01:17:42 +03:00
packet.h demux: support for some kinds of timed metadata 2018-04-18 01:17:42 +03:00
stheader.h demux, player: fix playback of sparse video streams (w/ still images) 2018-05-24 10:26:41 -07:00
timeline.c
timeline.h