mpv/demux
wm4 a604dc12be recorder: don't use a magic index for mp_recorder_get_sink()
Although this was sort of elegant, it just seems to complicate things
slightly. Originally, the API meant that you cache mp_recorder_sink
yourself (which would avoid the mess of passing an index around), but
that too seems slightly roundabout.

In a later change, I want to change the set of streams passed to
mp_recorder_create(), and then I'd have to keep track of the index for
each stream, which would suck. With this commit, I can just pass the
unambiguous sh_stream to it, and it will be guaranteed to match the
correct stream.

The disadvantages are barely worth discussing. It's a new linear search
per packet, but usually only 2 to 4 streams are active at a time. Also,
in theory a user could want to write 2 streams using the same sh_stream
(same metadata, just writing different packets or so), but in practice
this is never done.
2019-09-29 01:41:19 +02:00
..
cache.c
cache.h
codec_tags.c
codec_tags.h
cue.c
cue.h
demux.c recorder: don't use a magic index for mp_recorder_get_sink() 2019-09-29 01:41:19 +02:00
demux.h demux: propagate streaming flag through demux_timeline 2019-09-20 17:01:35 +02:00
demux_cue.c demux_cue: auto-detect CUE sheet charset 2019-09-21 15:18:20 +02:00
demux_edl.c
demux_lavf.c demux_lavf: fix seeking in ogg audio streams 2019-09-22 20:52:37 +02:00
demux_libarchive.c demux: sort filenames naturally when playing a directory / archive 2019-09-29 01:13:00 +03:00
demux_mf.c
demux_mkv.c
demux_mkv_timeline.c
demux_null.c
demux_playlist.c demux: sort filenames naturally when playing a directory / archive 2019-09-29 01:13:00 +03:00
demux_raw.c
demux_timeline.c demux: propagate streaming flag through demux_timeline 2019-09-20 17:01:35 +02:00
ebml.c
ebml.h
matroska.h
packet.c packet: fix theoretical UB if called on "empty" packets 2019-09-19 20:37:05 +02:00
packet.h
stheader.h
timeline.c
timeline.h