Commit a3b0da44 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

accesstweaks: remove redundant casts

parent 8b5b86f3
...@@ -327,17 +327,17 @@ static int Control( sout_mux_t *p_mux, int i_query, va_list args ) ...@@ -327,17 +327,17 @@ static int Control( sout_mux_t *p_mux, int i_query, va_list args )
switch( i_query ) switch( i_query )
{ {
case MUX_CAN_ADD_STREAM_WHILE_MUXING: case MUX_CAN_ADD_STREAM_WHILE_MUXING:
pb_bool = (bool*)va_arg( args, bool * ); pb_bool = va_arg( args, bool * );
*pb_bool = true; *pb_bool = true;
return VLC_SUCCESS; return VLC_SUCCESS;
case MUX_GET_ADD_STREAM_WAIT: case MUX_GET_ADD_STREAM_WAIT:
pb_bool = (bool*)va_arg( args, bool * ); pb_bool = va_arg( args, bool * );
*pb_bool = true; *pb_bool = true;
return VLC_SUCCESS; return VLC_SUCCESS;
case MUX_GET_MIME: case MUX_GET_MIME:
ppsz = (char**)va_arg( args, char ** ); ppsz = va_arg( args, char ** );
*ppsz = strdup( "application/ogg" ); *ppsz = strdup( "application/ogg" );
return VLC_SUCCESS; return VLC_SUCCESS;
......
...@@ -135,17 +135,17 @@ static int Control( sout_mux_t *p_mux, int i_query, va_list args ) ...@@ -135,17 +135,17 @@ static int Control( sout_mux_t *p_mux, int i_query, va_list args )
switch( i_query ) switch( i_query )
{ {
case MUX_CAN_ADD_STREAM_WHILE_MUXING: case MUX_CAN_ADD_STREAM_WHILE_MUXING:
pb_bool = (bool*)va_arg( args, bool * ); pb_bool = va_arg( args, bool * );
*pb_bool = false; *pb_bool = false;
return VLC_SUCCESS; return VLC_SUCCESS;
case MUX_GET_ADD_STREAM_WAIT: case MUX_GET_ADD_STREAM_WAIT:
pb_bool = (bool*)va_arg( args, bool * ); pb_bool = va_arg( args, bool * );
*pb_bool = true; *pb_bool = true;
return VLC_SUCCESS; return VLC_SUCCESS;
case MUX_GET_MIME: case MUX_GET_MIME:
ppsz = (char**)va_arg( args, char ** ); ppsz = va_arg( args, char ** );
*ppsz = strdup( "audio/wav" ); *ppsz = strdup( "audio/wav" );
return VLC_SUCCESS; return VLC_SUCCESS;
......
...@@ -67,14 +67,14 @@ static int Control( stream_t *p_stream, int i_query, va_list args ) ...@@ -67,14 +67,14 @@ static int Control( stream_t *p_stream, int i_query, va_list args )
case STREAM_CAN_FASTSEEK: case STREAM_CAN_FASTSEEK:
if( !p_sys->b_fastseek || !p_sys->b_seek ) if( !p_sys->b_fastseek || !p_sys->b_seek )
{ {
*((bool*)va_arg( args, bool* )) = false; *va_arg( args, bool* ) = false;
return VLC_SUCCESS; return VLC_SUCCESS;
} }
break; break;
case STREAM_CAN_SEEK: case STREAM_CAN_SEEK:
if( !p_sys->b_seek ) if( !p_sys->b_seek )
{ {
*((bool*)va_arg( args, bool* )) = false; *va_arg( args, bool* ) = false;
return VLC_SUCCESS; return VLC_SUCCESS;
} }
break; break;
......
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