summaryrefslogtreecommitdiffstats
path: root/filters/f_demux_in.h
diff options
context:
space:
mode:
Diffstat (limited to 'filters/f_demux_in.h')
-rw-r--r--filters/f_demux_in.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/filters/f_demux_in.h b/filters/f_demux_in.h
new file mode 100644
index 0000000000..eebd428fee
--- /dev/null
+++ b/filters/f_demux_in.h
@@ -0,0 +1,11 @@
+#pragma once
+
+#include "filter.h"
+
+struct sh_stream;
+
+// Create a filter with a single output for the given stream. The stream must
+// be selected, and remain so until the filter is destroyed. The filter will
+// set/unset the stream's wakeup callback.
+struct mp_filter *mp_demux_in_create(struct mp_filter *parent,
+ struct sh_stream *src);