summaryrefslogtreecommitdiffstats
path: root/stream/stream_edl.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-19 22:26:35 +0100
committerwm4 <wm4@nowhere>2013-11-19 22:39:04 +0100
commit04bdd7af72aa9ab5aa81e38ca85d3f40e76f16d4 (patch)
tree583e217b7f1b678e8911fcc897529ff8d6faeec2 /stream/stream_edl.c
parent50837129b231ae9a811abac2767af5fa6ced621b (diff)
downloadmpv-04bdd7af72aa9ab5aa81e38ca85d3f40e76f16d4.tar.bz2
mpv-04bdd7af72aa9ab5aa81e38ca85d3f40e76f16d4.tar.xz
timeline: add edl:// URIs
Questionable change from user perspective, but internally needed to implement the next commit. Also useful for testing timeline stuff.
Diffstat (limited to 'stream/stream_edl.c')
-rw-r--r--stream/stream_edl.c21
1 files changed, 21 insertions, 0 deletions
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},
+};