[vlc-devel] [PATCH 2/3] input/es_out: added function EsDeleteInfo
Filip Roséen
filip at videolabs.io
Wed Jul 13 22:41:53 CEST 2016
This helper function, as its name implies, is used to remove information
associated with the passed ES.
---
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 );
+ }
+}
--
2.9.0
More information about the vlc-devel
mailing list