[vlc-devel] [RFC PATCHv2 14/18] demux: avi: use stable ids
Thomas Guillem
thomas at gllm.fr
Tue Feb 18 17:11:27 CET 2020
Use the track addition order as a track id. It's expected to be always the same
order since tracks are added from the open callback().
p_es_dv_audio tracks, that are added during playback will keep using an auto id.
---
modules/demux/avi/avi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index 12e793a018b..38c8cb61dba 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -673,6 +673,7 @@ static int Open( vlc_object_t * p_this )
free( tk );
continue;
}
+ tk->fmt.i_id = i;
if( p_strn && p_strn->p_str )
tk->fmt.psz_description = FromACP( p_strn->p_str );
tk->p_es = es_out_Add( p_demux->out, &tk->fmt );
--
2.20.1
More information about the vlc-devel
mailing list