From 04bdd7af72aa9ab5aa81e38ca85d3f40e76f16d4 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 19 Nov 2013 22:26:35 +0100 Subject: timeline: add edl:// URIs Questionable change from user perspective, but internally needed to implement the next commit. Also useful for testing timeline stuff. --- stream/stream_edl.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 stream/stream_edl.c (limited to 'stream/stream_edl.c') diff --git a/stream/stream_edl.c b/stream/stream_edl.c new file mode 100644 index 0000000000..8f9c5a90af --- /dev/null +++ b/stream/stream_edl.c @@ -0,0 +1,21 @@ +// 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, int mode) +{ + if (mode != STREAM_READ) + return STREAM_ERROR; + + 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}, +}; -- cgit v1.2.3