summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-05-17 20:53:09 +0200
committerwm4 <wm4@nowhere>2019-09-19 20:37:04 +0200
commitf08387c55265a69f2e05c83ca81d71770e642fbc (patch)
tree3a1df71fb11e24cd6623791ae5cf9892c7d6baff /player
parent287166b02e284051b6839ba7747e1e1f63364b05 (diff)
downloadmpv-f08387c55265a69f2e05c83ca81d71770e642fbc.tar.bz2
mpv-f08387c55265a69f2e05c83ca81d71770e642fbc.tar.xz
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.
Diffstat (limited to 'player')
0 files changed, 0 insertions, 0 deletions