Commit 35b4c344 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: asf: set es id to stream number

Should fix mmsh stream selection
parent 95cfad6a
...@@ -448,7 +448,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args ) ...@@ -448,7 +448,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
int i_ret; int i_ret;
if ( i >= 0 ) if ( i >= 0 )
{ {
i++; /* video/audio-es variable starts 0 */
msg_Dbg( p_demux, "Requesting access to enable stream %d", i ); 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 ); 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 ) ...@@ -1091,6 +1090,8 @@ static int DemuxInit( demux_t *p_demux )
es_format_Copy( tk->p_fmt, &fmt ); 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 ); tk->p_es = es_out_Add( p_demux->out, &fmt );
if( !stream_Control( p_demux->s, STREAM_GET_PRIVATE_ID_STATE, if( !stream_Control( p_demux->s, STREAM_GET_PRIVATE_ID_STATE,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment