]> git.sesse.net Git - vlc/commitdiff
demux: asf: set es id to stream number
authorFrancois Cartegnie <fcvlcdev@free.fr>
Mon, 23 Feb 2015 19:23:12 +0000 (20:23 +0100)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Mon, 23 Feb 2015 19:24:47 +0000 (20:24 +0100)
Should fix mmsh stream selection

modules/demux/asf/asf.c

index c8cf4415fc8cafbacc1c4c735852473c8061ea18..acd4410dfb1470ac12e9df104886fb91bae20bf3 100644 (file)
@@ -448,7 +448,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
         int i_ret;
         if ( i >= 0 )
         {
-            i++; /* video/audio-es variable starts 0 */
             msg_Dbg( p_demux, "Requesting access to enable stream %d", i );
             i_ret = stream_Control( p_demux->s, STREAM_SET_PRIVATE_ID_STATE, i, true );
         }
@@ -1091,6 +1090,8 @@ static int DemuxInit( demux_t *p_demux )
                     es_format_Copy( tk->p_fmt, &fmt );
             }
 
+            fmt.i_id = tk->info.p_sp->i_stream_number;
+
             tk->p_es = es_out_Add( p_demux->out, &fmt );
 
             if( !stream_Control( p_demux->s, STREAM_GET_PRIVATE_ID_STATE,