[vlc-devel] [PATCH 2/3] es_out: add vlc_es_id_GetSource
Thomas Guillem
thomas at gllm.fr
Fri Feb 28 11:34:53 CET 2020
It will be used to get the source, hence the demux from an es track. cf. next
commit.
---
src/input/es_out.c | 5 +++++
src/input/es_out.h | 1 +
2 files changed, 6 insertions(+)
diff --git a/src/input/es_out.c b/src/input/es_out.c
index a2f6b3e0d1c..2dfc4b46ca2 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -4435,3 +4435,8 @@ vlc_es_id_GetCat(vlc_es_id_t *id)
{
return id->i_cat;
}
+
+const input_source_t *vlc_es_id_GetSource(vlc_es_id_t *id)
+{
+ return id->source;
+}
diff --git a/src/input/es_out.h b/src/input/es_out.h
index af3fff944d7..4d5e2393605 100644
--- a/src/input/es_out.h
+++ b/src/input/es_out.h
@@ -273,5 +273,6 @@ es_out_t *input_EsOutTimeshiftNew( input_thread_t *, es_out_t *, float i_rate )
es_out_t *input_EsOutSourceNew(es_out_t *master_out, input_source_t *in);
es_out_id_t *vlc_es_id_get_out(vlc_es_id_t *id);
+const input_source_t *vlc_es_id_GetSource(vlc_es_id_t *id);
#endif
--
2.20.1
More information about the vlc-devel
mailing list