mpv/common
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
..
av_common.c demux: use no overlapping packets for lossless audio 2019-09-19 20:37:04 +02:00
av_common.h demux: use no overlapping packets for lossless audio 2019-09-19 20:37:04 +02:00
av_log.c
av_log.h
codecs.c
codecs.h
common.c
common.h common: add macro for checking whether a value is a power of two 2019-09-19 20:37:05 +02:00
encode.h encode: get rid of the output packet queue 2018-05-03 01:08:44 +03:00
encode_lavc.c encode: set sample_aspect_ratio on AVStream struct 2019-08-14 21:54:44 +02:00
encode_lavc.h encode: get rid of the output packet queue 2018-05-03 01:08:44 +03:00
global.h player: get rid of mpv_global.opts 2018-05-24 19:56:35 +02:00
msg.c msg: remove unnecessary condition 2019-09-19 20:37:05 +02:00
msg.h vo_gpu: vulkan: use libplacebo instead 2019-04-21 23:55:22 +03:00
msg_control.h player: get rid of mpv_global.opts 2018-05-24 19:56:35 +02:00
playlist.c demux: get rid of free_demuxer[_and_stream]() 2018-05-24 19:56:35 +02:00
playlist.h command: make loadlist command async and abortable 2018-05-24 19:56:35 +02:00
recorder.c recorder: don't use a magic index for mp_recorder_get_sink() 2019-09-29 01:41:19 +02:00
recorder.h recorder: don't use a magic index for mp_recorder_get_sink() 2019-09-29 01:41:19 +02:00
tags.c
tags.h
version.c