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

input: small simplification

parent fe0a075e
...@@ -548,7 +548,6 @@ static int AStreamControl( stream_t *s, int i_query, va_list args ) ...@@ -548,7 +548,6 @@ static int AStreamControl( stream_t *s, int i_query, va_list args )
stream_sys_t *p_sys = s->p_sys; stream_sys_t *p_sys = s->p_sys;
access_t *p_access = p_sys->p_access; access_t *p_access = p_sys->p_access;
bool *p_bool;
uint64_t *pi_64, i_64; uint64_t *pi_64, i_64;
int i_int; int i_int;
...@@ -568,14 +567,10 @@ static int AStreamControl( stream_t *s, int i_query, va_list args ) ...@@ -568,14 +567,10 @@ static int AStreamControl( stream_t *s, int i_query, va_list args )
break; break;
case STREAM_CAN_SEEK: case STREAM_CAN_SEEK:
p_bool = (bool*)va_arg( args, bool * ); return access_vaControl( p_access, ACCESS_CAN_SEEK, args );
access_Control( p_access, ACCESS_CAN_SEEK, p_bool );
break;
case STREAM_CAN_FASTSEEK: case STREAM_CAN_FASTSEEK:
p_bool = (bool*)va_arg( args, bool * ); return access_vaControl( p_access, ACCESS_CAN_FASTSEEK, args );
access_Control( p_access, ACCESS_CAN_FASTSEEK, p_bool );
break;
case STREAM_GET_POSITION: case STREAM_GET_POSITION:
pi_64 = va_arg( args, uint64_t * ); pi_64 = va_arg( args, uint64_t * );
...@@ -619,8 +614,8 @@ static int AStreamControl( stream_t *s, int i_query, va_list args ) ...@@ -619,8 +614,8 @@ static int AStreamControl( stream_t *s, int i_query, va_list args )
return VLC_SUCCESS; return VLC_SUCCESS;
case STREAM_GET_CONTENT_TYPE: case STREAM_GET_CONTENT_TYPE:
return access_Control( p_access, ACCESS_GET_CONTENT_TYPE, return access_vaControl( p_access, ACCESS_GET_CONTENT_TYPE, args );
va_arg( args, char ** ) );
case STREAM_SET_RECORD_STATE: case STREAM_SET_RECORD_STATE:
default: default:
msg_Err( s, "invalid stream_vaControl query=0x%x", i_query ); msg_Err( s, "invalid stream_vaControl query=0x%x", i_query );
......
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