mirror of
https://github.com/mpv-player/mpv
synced 2025-01-02 04:42:10 +00:00
aa87c143cb
For some reason, we support writeable streams. (Only encoding uses that, and the use of it looks messy enough that I want to replace it with FILE or avio today.) It's a chaos: most streams do not actually check the mode parameter like they should. Simplify it, and let streams signal availability of write mode by setting a flag in the stream info struct.
19 lines
406 B
C
19 lines
406 B
C
// Dummy stream implementation to enable demux_edl, which is in turn a
|
|
// dummy demuxer implementation to enable tl_edl.
|
|
|
|
#include "stream.h"
|
|
|
|
static int s_open (struct stream *stream)
|
|
{
|
|
stream->type = STREAMTYPE_EDL;
|
|
stream->demuxer = "edl";
|
|
|
|
return STREAM_OK;
|
|
}
|
|
|
|
const stream_info_t stream_info_edl = {
|
|
.name = "edl",
|
|
.open = s_open,
|
|
.protocols = (const char*[]){"edl", NULL},
|
|
};
|