[vlc-devel] commit: Cleaning/factorize. ( Rémi Duraffort )

git version control git at videolan.org
Thu Jun 25 10:09:44 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Jun 25 10:07:55 2009 +0200| [10caa1efeecf16248b05ad80286e3195b82f49bf] | committer: Rémi Duraffort 

Cleaning/factorize.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=10caa1efeecf16248b05ad80286e3195b82f49bf
---

 modules/access/smb.c |   15 +++------------
 1 files changed, 3 insertions(+), 12 deletions(-)

diff --git a/modules/access/smb.c b/modules/access/smb.c
index cdfbc83..33d6d8a 100644
--- a/modules/access/smb.c
+++ b/modules/access/smb.c
@@ -35,9 +35,9 @@
 #include <vlc_access.h>
 
 #ifdef WIN32
-#ifdef HAVE_FCNTL_H
-#   include <fcntl.h>
-#endif
+#   ifdef HAVE_FCNTL_H
+#       include <fcntl.h>
+#   endif
 #   ifdef HAVE_SYS_STAT_H
 #       include <sys/stat.h>
 #   endif
@@ -320,17 +320,8 @@ static int Control( access_t *p_access, int i_query, va_list args )
     switch( i_query )
     {
     case ACCESS_CAN_SEEK:
-        pb_bool = (bool*)va_arg( args, bool* );
-        *pb_bool = true;
-        break;
     case ACCESS_CAN_FASTSEEK:
-        pb_bool = (bool*)va_arg( args, bool* );
-        *pb_bool = true;
-        break;
     case ACCESS_CAN_PAUSE:
-        pb_bool = (bool*)va_arg( args, bool* );
-        *pb_bool = true;
-        break;
     case ACCESS_CAN_CONTROL_PACE:
         pb_bool = (bool*)va_arg( args, bool* );
         *pb_bool = true;




More information about the vlc-devel mailing list