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

tcp: remove redundant casts

parent df48b838
......@@ -489,18 +489,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 = true;
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;
......@@ -511,7 +511,7 @@ 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;
......
......@@ -47,20 +47,20 @@ static int Control( access_t *p_access, int i_query, va_list args )
{
case STREAM_CAN_SEEK:
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; /* FIXME */
break;
case STREAM_CAN_CONTROL_PACE:
pb_bool = (bool*)va_arg( args, bool* );
pb_bool = va_arg( args, bool * );
*pb_bool = true; /* FIXME */
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;
......
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