Commit 31ef8e65 authored by Francois Cartegnie's avatar Francois Cartegnie Committed by Jean-Baptiste Kempf

demux: asf: set es id to stream number

Should fix mmsh stream selection

(cherry picked from commit 35b4c344a39fd25b849400032c04e2701fefcb33)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent dc0bb0a5
......@@ -430,7 +430,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 );
}
......@@ -1500,6 +1499,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,
......
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