Commit 54a4c8e0 authored by Gildas Bazin's avatar Gildas Bazin

* modules/mux/asf.c: the asf muxer can only add streams on the fly when in...

* modules/mux/asf.c: the asf muxer can only add streams on the fly when in http mode (otherwise this will screw up the header re-writing on Close().)
parent e5fcfe84
......@@ -278,7 +278,8 @@ static int Control( sout_mux_t *p_mux, int i_query, va_list args )
{
case MUX_CAN_ADD_STREAM_WHILE_MUXING:
pb_bool = (vlc_bool_t*)va_arg( args, vlc_bool_t * );
*pb_bool = VLC_TRUE;
if( p_sys->b_asf_http ) *pb_bool = VLC_TRUE;
else *pb_bool = VLC_FALSE;
return VLC_SUCCESS;
case MUX_GET_ADD_STREAM_WAIT:
......@@ -835,6 +836,8 @@ static block_t *asf_header_create( sout_mux_t *p_mux, vlc_bool_t b_broadcast )
bo_t bo;
int i;
msg_Dbg( p_mux, "Asf muxer creating header" );
if( p_sys->i_dts_first > 0 )
{
i_duration = p_sys->i_dts_last - p_sys->i_dts_first;
......
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