[vlc-commits] demux: asf: set es id to stream number
Francois Cartegnie
git at videolan.org
Mon Feb 23 20:24:59 CET 2015
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Feb 23 20:23:12 2015 +0100| [35b4c344a39fd25b849400032c04e2701fefcb33] | committer: Francois Cartegnie
demux: asf: set es id to stream number
Should fix mmsh stream selection
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=35b4c344a39fd25b849400032c04e2701fefcb33
---
modules/demux/asf/asf.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/demux/asf/asf.c b/modules/demux/asf/asf.c
index c8cf441..acd4410 100644
--- a/modules/demux/asf/asf.c
+++ b/modules/demux/asf/asf.c
@@ -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,
More information about the vlc-commits
mailing list