[vlc-devel] [PATCH 2/2] es_out: remove unused EsOutGetFromID

Thomas Guillem thomas at gllm.fr
Fri Feb 28 15:16:34 CET 2020


There is officially no more code referencing a track by its int id.
---
 src/input/es_out.c | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git a/src/input/es_out.c b/src/input/es_out.c
index 5dbf5546822..090d1cf1e44 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -680,23 +680,6 @@ static vlc_tick_t EsOutGetWakeup( es_out_t *out )
 
 static es_out_id_t es_cat[DATA_ES];
 
-static es_out_id_t *EsOutGetFromID( es_out_t *out, int i_id )
-{
-    es_out_sys_t *p_sys = container_of(out, es_out_sys_t, out);
-    es_out_id_t *es;
-
-    if( i_id < 0 )
-    {
-        /* Special HACK, -i_id is the cat of the stream */
-        return es_cat - i_id;
-    }
-
-    foreach_es_then_es_slaves(es)
-        if (es->fmt.i_id == i_id)
-            return es;
-    return NULL;
-}
-
 static es_out_id_t *EsOutGetSelectedCat( es_out_t *out,
                                          enum es_format_category_e cat )
 {
-- 
2.20.1



More information about the vlc-devel mailing list