[vlc-commits] es_out: add vlc_es_id_GetSource
Thomas Guillem
git at videolan.org
Fri Feb 28 20:46:42 CET 2020
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Feb 28 10:27:28 2020 +0100| [a7b3fc2bd644b732cf377d8fc63a28ef90298b4c] | committer: Thomas Guillem
es_out: add vlc_es_id_GetSource
It will be used to get the source, hence the demux from an es track. cf. next
commit.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a7b3fc2bd644b732cf377d8fc63a28ef90298b4c
---
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 a2f6b3e0d1..2dfc4b46ca 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 af3fff944d..4d5e239360 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
More information about the vlc-commits
mailing list