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

mms: remove redundant casts

parent 04bb3733
......@@ -189,18 +189,18 @@ static int Control( access_t *p_access, int i_query, va_list args )
switch( i_query )
{
case STREAM_CAN_SEEK:
pb_bool = (bool*)va_arg( args, bool* );
pb_bool = va_arg( args, bool * );
*pb_bool = !p_sys->b_broadcast;
break;
case STREAM_CAN_FASTSEEK:
pb_bool = (bool*)va_arg( args, bool* );
pb_bool = va_arg( args, bool * );
*pb_bool = false;
break;
case STREAM_CAN_PAUSE:
case STREAM_CAN_CONTROL_PACE:
pb_bool = (bool*)va_arg( args, bool* );
pb_bool = va_arg( args, bool * );
*pb_bool = true;
break;
......@@ -214,14 +214,14 @@ static int Control( access_t *p_access, int i_query, va_list args )
}
case STREAM_GET_PTS_DELAY:
pi_64 = (int64_t*)va_arg( args, int64_t * );
pi_64 = va_arg( args, int64_t * );
*pi_64 = INT64_C(1000)
* var_InheritInteger( p_access, "network-caching" );
break;
case STREAM_GET_PRIVATE_ID_STATE:
i_int = (int)va_arg( args, int );
pb_bool = (bool *)va_arg( args, bool * );
i_int = va_arg( args, int );
pb_bool = va_arg( args, bool * );
if( (i_int < 0) || (i_int > 127) )
return VLC_EGENERIC;
......@@ -230,7 +230,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case STREAM_SET_PRIVATE_ID_STATE:
{
i_int = (int)va_arg( args, int );
i_int = va_arg( args, int );
b_bool = (bool)va_arg( args, int );
int i_cat;
if( i_int > 127 )
......
......@@ -220,22 +220,22 @@ static int Control( access_t *p_access, int i_query, va_list args )
switch( i_query )
{
case STREAM_CAN_SEEK:
pb_bool = (bool*)va_arg( args, bool* );
pb_bool = va_arg( args, bool * );
*pb_bool = p_sys->b_seekable;
break;
case STREAM_CAN_FASTSEEK:
pb_bool = (bool*)va_arg( args, bool* );
pb_bool = va_arg( args, bool * );
*pb_bool = false;
break;
case STREAM_CAN_PAUSE:
pb_bool = (bool*)va_arg( args, bool* );
pb_bool = va_arg( args, bool * );
*pb_bool = true;
break;
case STREAM_CAN_CONTROL_PACE:
pb_bool = (bool*)va_arg( args, bool* );
pb_bool = va_arg( args, bool * );
#if 0 /* Disable for now until we have a clock synchro algo
* which works with something else than MPEG over UDP */
......@@ -251,13 +251,13 @@ static int Control( access_t *p_access, int i_query, va_list args )
break;
case STREAM_GET_PTS_DELAY:
pi_64 = (int64_t*)va_arg( args, int64_t * );
pi_64 = va_arg( args, int64_t * );
*pi_64 = INT64_C(1000)
* var_InheritInteger( p_access, "network-caching" );
break;
case STREAM_GET_PRIVATE_ID_STATE:
i_int = (int)va_arg( args, int );
i_int = va_arg( args, int );
pb_bool = (bool *)va_arg( args, bool * );
if( i_int < 0 || i_int > 127 )
......@@ -267,7 +267,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case STREAM_SET_PRIVATE_ID_STATE:
{
i_int = (int)va_arg( args, int );
i_int = va_arg( args, int );
b_bool = (bool)va_arg( args, int );
int i_cat;
if( i_int > 127 )
......
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