[vlc-commits] demux: avi: use stable ids

Thomas Guillem git at videolan.org
Fri Feb 28 20:46:25 CET 2020


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Feb 17 17:15:27 2020 +0100| [94de80f7f979de3ff7f25e017fd73fa455b4b345] | committer: Thomas Guillem

demux: avi: use stable ids

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.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=94de80f7f979de3ff7f25e017fd73fa455b4b345
---

 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 12e793a018..38c8cb61db 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 );



More information about the vlc-commits mailing list