1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-30 23:38:10 +00:00
mpv/demux
wm4 1449bd3624 demux: remove logic duplication from packet read functions
There were 3 packet reading functions: the "old" demux_read_packet()
that blocked (leftover from MPlayer times, but was still used until
recently by some obscure code), the "new" demux_read_packet_async(), and
the special demux_read_any_packet(), that is used by pseudo-demuxers
like demux_edl.

The first two could be used both in threaded and un-threaded mode. This
made 5 cases in total. Some bits of logic was spread across all of them.

Unify the logic. A recent commit made demux_read_packet() private, and
the code for it in threaded mode disappears. The difference between
threaded and un-threaded is minimized.

It's possible that this commit causes random regression. Enjoy.
2019-05-17 21:04:20 +02:00
..
codec_tags.c demux_mkv: simplify avi compat. codec_tags.c GUID lookup 2018-09-14 14:17:32 +02:00
codec_tags.h Relicense some non-MPlayer source files to LGPL 2.1 or later 2016-01-19 18:36:06 +01:00
cue.c cue: strip quotes and leading whitespace from tags 2018-01-30 14:01:15 +01:00
cue.h Relicense some non-MPlayer source files to LGPL 2.1 or later 2016-01-19 18:36:06 +01:00
demux_cue.c demux_edl, cue, mkv: slightly nicer file format indication 2019-01-11 15:12:30 +01:00
demux_edl.c demux_edl: fix assertion failure on exit in obscure ytdl cases 2019-01-20 15:46:09 +01:00
demux_lavf.c demux: slightly cleanup network speed reporting 2019-01-05 09:11:18 +01:00
demux_libarchive.c demux: change hack for closing subtitle files early 2018-09-07 23:02:36 +02:00
demux_mf.c demux: return packets directly from demuxer instead of using sh_stream 2018-09-07 15:20:32 +02:00
demux_mkv_timeline.c demux_edl, cue, mkv: slightly nicer file format indication 2019-01-11 15:12:30 +01:00
demux_mkv.c demux_mkv: fix seeking in broken mjpeg files 2019-01-18 01:04:49 +01:00
demux_null.c demux_null: mark as seekable 2018-01-06 14:42:22 -08:00
demux_playlist.c demux: change hack for closing subtitle files early 2018-09-07 23:02:36 +02:00
demux_raw.c demux: return packets directly from demuxer instead of using sh_stream 2018-09-07 15:20:32 +02:00
demux_timeline.c demux_timeline: add heuristic to fix shifted seeks with separate audio 2019-01-11 15:12:30 +01:00
demux.c demux: remove logic duplication from packet read functions 2019-05-17 21:04:20 +02:00
demux.h sub: remove only user of demux_read_packet() 2019-05-17 18:52:22 +02: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 ebml, matroska.h: change license to LGPL 2017-04-21 13:34:10 +02:00
packet.c demux: support for some kinds of timed metadata 2018-04-18 01:17:42 +03:00
packet.h packet: reorder fields 2019-05-16 16:20:45 +02:00
stheader.h demux, player: fix playback of sparse video streams (w/ still images) 2018-05-24 10:26:41 -07:00
timeline.c demux_edl, cue, mkv: slightly nicer file format indication 2019-01-11 15:12:30 +01:00
timeline.h demux_edl, cue, mkv: slightly nicer file format indication 2019-01-11 15:12:30 +01:00