Commit 10caa1ef authored by Rémi Duraffort's avatar Rémi Duraffort

Cleaning/factorize.

parent daaa8bf0
...@@ -35,9 +35,9 @@ ...@@ -35,9 +35,9 @@
#include <vlc_access.h> #include <vlc_access.h>
#ifdef WIN32 #ifdef WIN32
#ifdef HAVE_FCNTL_H # ifdef HAVE_FCNTL_H
# include <fcntl.h> # include <fcntl.h>
#endif # endif
# ifdef HAVE_SYS_STAT_H # ifdef HAVE_SYS_STAT_H
# include <sys/stat.h> # include <sys/stat.h>
# endif # endif
...@@ -320,17 +320,8 @@ static int Control( access_t *p_access, int i_query, va_list args ) ...@@ -320,17 +320,8 @@ static int Control( access_t *p_access, int i_query, va_list args )
switch( i_query ) switch( i_query )
{ {
case ACCESS_CAN_SEEK: case ACCESS_CAN_SEEK:
pb_bool = (bool*)va_arg( args, bool* );
*pb_bool = true;
break;
case ACCESS_CAN_FASTSEEK: case ACCESS_CAN_FASTSEEK:
pb_bool = (bool*)va_arg( args, bool* );
*pb_bool = true;
break;
case ACCESS_CAN_PAUSE: case ACCESS_CAN_PAUSE:
pb_bool = (bool*)va_arg( args, bool* );
*pb_bool = true;
break;
case ACCESS_CAN_CONTROL_PACE: case ACCESS_CAN_CONTROL_PACE:
pb_bool = (bool*)va_arg( args, bool* ); pb_bool = (bool*)va_arg( args, bool* );
*pb_bool = true; *pb_bool = true;
......
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