vlc | branch: master | Thomas Guillem <[email protected]> | Fri Feb 28 15:16:21 2020 +0100| [709610a2a3aa7fbbd745e90f6c7273d2b25becb3] | committer: Thomas Guillem
es_out: remove unused EsOutGetFromID There is officially no more code referencing a track by its int id. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=709610a2a3aa7fbbd745e90f6c7273d2b25becb3 --- 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 5dbf554682..090d1cf1e4 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 ) { _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
