[vlc-commits] input/es_out: add function EsDeleteInfo
Filip Roséen
git at videolan.org
Mon Jul 18 05:58:00 CEST 2016
vlc | branch: master | Filip Roséen <filip at videolabs.io> | Wed Jul 13 22:41:53 2016 +0200| [9a2a96c7179bd8cba41b896081585aba0519c0d3] | committer: Jean-Baptiste Kempf
input/es_out: add function EsDeleteInfo
This helper function, as its name implies, is used to remove information
associated with the passed ES.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9a2a96c7179bd8cba41b896081585aba0519c0d3
---
src/input/es_out.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/src/input/es_out.c b/src/input/es_out.c
index 9fb8602..e24bf32 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -186,6 +186,7 @@ static int EsOutSetRecord( es_out_t *, bool b_record );
static bool EsIsSelected( es_out_id_t *es );
static void EsSelect( es_out_t *out, es_out_id_t *es );
+static void EsDeleteInfo( es_out_t *, es_out_id_t *es );
static void EsUnselect( es_out_t *out, es_out_id_t *es, bool b_update );
static void EsOutDecoderChangeDelay( es_out_t *out, es_out_id_t *p_es );
static void EsOutDecodersChangePause( es_out_t *out, bool b_paused, mtime_t i_date );
@@ -3110,3 +3111,16 @@ static void EsOutUpdateInfo( es_out_t *out, es_out_id_t *es, const es_format_t *
/* */
input_Control( p_input, INPUT_REPLACE_INFOS, p_cat );
}
+
+static void EsDeleteInfo( es_out_t *out, es_out_id_t *es )
+{
+ char* psz_info_category;
+
+ if( likely( psz_info_category = EsInfoCategoryName( es ) ) )
+ {
+ input_Control( out->p_sys->p_input, INPUT_DEL_INFO,
+ psz_info_category, NULL );
+
+ free( psz_info_category );
+ }
+}
More information about the vlc-commits
mailing list