1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-21 06:14:32 +00:00
mpv/stream/stream_edl.c
wm4 fb9a32977d stream: get rid of streamtype enum
Because it's kind of dumb. (But not sure if it was worth the trouble.)

For stream_file.c, we add new explicit fields. The rest are rather
special uses and can be killed by comparing the stream impl. name.

The changes to DVD/BD/CD/TV are entirely untested.
2017-02-02 18:26:58 +01:00

19 lines
411 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->demuxer = "edl";
stream->allow_caching = false;
return STREAM_OK;
}
const stream_info_t stream_info_edl = {
.name = "edl",
.open = s_open,
.protocols = (const char*const[]){"edl", NULL},
};