]> git.sesse.net Git - vlc/commitdiff
ALL: MSVC compilation fixes to libvlc.
authorGildas Bazin <gbazin@videolan.org>
Tue, 2 Dec 2003 12:57:36 +0000 (12:57 +0000)
committerGildas Bazin <gbazin@videolan.org>
Tue, 2 Dec 2003 12:57:36 +0000 (12:57 +0000)
include/variables.h
include/vlc/vlc.h
src/input/es_out.c
src/input/input.c
src/input/subtitles.c
src/misc/win32_specific.c
src/playlist/playlist.c

index 80610e4d68fcc53191553fdbf7cb157f9efe60ff..a37dcdc6c0233b1d3369913e22c4b0c0623d6bf4 100644 (file)
@@ -2,7 +2,7 @@
  * variables.h: variables handling
  *****************************************************************************
  * Copyright (C) 2002 VideoLAN
- * $Id: variables.h,v 1.18 2003/10/29 01:33:27 gbazin Exp $
+ * $Id: variables.h,v 1.19 2003/12/02 12:57:35 gbazin Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *
@@ -255,7 +255,7 @@ static inline int __var_SetInteger( vlc_object_t *p_obj, const char *psz_name, i
  * \param psz_name The name of the variable
  * \param i The new time value of this variable
  */
-static inline int __var_SetTime( vlc_object_t *p_obj, const char *psz_name, signed long long i )
+static inline int __var_SetTime( vlc_object_t *p_obj, const char *psz_name, int64_t i )
 {
     vlc_value_t val;
     val.i_time = i;
index 46b26d1a89fac6959092cb2e762504e03953dec6..bf4437fb9f861d546ab3ce090d7de70aeff2e14e 100644 (file)
@@ -2,7 +2,7 @@
  * vlc.h: global header for vlc
  *****************************************************************************
  * Copyright (C) 1998, 1999, 2000 VideoLAN
- * $Id: vlc.h,v 1.27 2003/09/20 19:37:53 hartman Exp $
+ * $Id: vlc.h,v 1.28 2003/12/02 12:57:35 gbazin Exp $
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -42,7 +42,12 @@ typedef union
     void *          p_address;
     vlc_object_t *  p_object;
     vlc_list_t *    p_list;
+
+#if defined( WIN32 ) && !defined( __MINGW32__ )
+    signed __int64   i_time;
+# else
     signed long long i_time;
+#endif
 
     struct { char *psz_name; int i_object_id; } var;
 
index 8bdfd812249db27b8a5010107dc963b937b07e0b..58fa5b95a89a69c3f2dfcc773cad5d273218eba2 100644 (file)
@@ -2,7 +2,7 @@
  * es_out.c: Es Out handler for input.
  *****************************************************************************
  * Copyright (C) 2003 VideoLAN
- * $Id: es_out.c,v 1.5 2003/11/30 17:29:56 fenrir Exp $
+ * $Id: es_out.c,v 1.6 2003/12/02 12:57:35 gbazin Exp $
  *
  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
  *
@@ -228,7 +228,7 @@ static es_out_id_t *EsOutAdd( es_out_t *out, es_format_t *fmt )
     input_thread_t    *p_input = p_sys->p_input;
     es_out_id_t       *es = malloc( sizeof( es_out_id_t ) );
     pgrm_descriptor_t *p_prgm = NULL;
-    char              psz_cat[strlen( "Stream " ) + 10];
+    char              psz_cat[sizeof( "Stream " ) + 10];
     input_info_category_t *p_cat;
 
     vlc_mutex_lock( &p_input->stream.stream_lock );
index d56ea5c29eaa58227e80b18ef344631c734d058c..5a778380fba78c36bb6a915ff5ae31bd6aed09a2 100644 (file)
@@ -4,7 +4,7 @@
  * decoders.
  *****************************************************************************
  * Copyright (C) 1998-2002 VideoLAN
- * $Id: input.c,v 1.269 2003/11/30 16:00:24 fenrir Exp $
+ * $Id: input.c,v 1.270 2003/12/02 12:57:35 gbazin Exp $
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
  *
@@ -43,7 +43,7 @@
 
 #include "vlc_interface.h"
 #include "codecs.h"
-#include "modules/demux/util/sub.h"
+#include "../../modules/demux/util/sub.h"
 
 /*****************************************************************************
  * Local prototypes
@@ -509,7 +509,7 @@ static int RunThread( input_thread_t *p_input )
                 subtitle_Demux( p_input->p_sys->sub[i], i_time );
             }
 
-            i_update_next = mdate() + 150000LL;
+            i_update_next = mdate() + I64C(150000);
         }
     }
 
index 85a5c7e8675bb168326367f46a7f90a6ad0f8f30..0fd22cec2479a88c90e5789c2e4a0e4bfb64c59d 100644 (file)
@@ -2,7 +2,7 @@
  * subtitles.c
  *****************************************************************************
  * Copyright (C) 2003 VideoLAN
- * $Id: subtitles.c,v 1.4 2003/10/11 22:40:05 hartman Exp $
+ * $Id: subtitles.c,v 1.5 2003/12/02 12:57:36 gbazin Exp $
  *
  * Authors: Derk-Jan Hartman <hartman at videolan.org>
  * This is adapted code from the GPL'ed MPlayer (http://mplayerhq.hu)
 #include <vlc/input.h>
 
 #include "ninput.h"
-#include <dirent.h>
+
+#ifdef HAVE_DIRENT_H
+#   include <dirent.h>
+#else
+#   include "../extras/dirent.h"
+#endif
+
 #include <ctype.h>
 
 /**
index 16c21b5f8005aba8ac8881b1436141e6f2319e46..4782f2059cbb0ef14cc8f7f7dc844346bb939f25 100644 (file)
@@ -2,7 +2,7 @@
  * win32_specific.c: Win32 specific features
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: win32_specific.c,v 1.26 2003/10/03 13:35:56 sam Exp $
+ * $Id: win32_specific.c,v 1.27 2003/12/02 12:57:36 gbazin Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *          Gildas Bazin <gbazin@netcourrier.com>
@@ -32,6 +32,7 @@
 #endif
 
 #if !defined( UNDER_CE )
+#   include <io.h>
 #   include <fcntl.h>
 #   include <winsock2.h>
 #endif
index f17990b7d3f16b32c44a5689e600ed993a027cf6..0653e9c5b3e0d07a3f3fa7c513b4f7b6b804d9c1 100644 (file)
@@ -2,7 +2,7 @@
  * playlist.c : Playlist management functions
  *****************************************************************************
  * Copyright (C) 1999-2001 VideoLAN
- * $Id: playlist.c,v 1.66 2003/11/29 11:12:46 fenrir Exp $
+ * $Id: playlist.c,v 1.67 2003/12/02 12:57:36 gbazin Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *
@@ -249,7 +249,7 @@ static void ObjectGarbageCollector( playlist_t *p_playlist,
     if( *pi_obj_destroyed_date == 0 )
     {
         /* give a little time */
-        *pi_obj_destroyed_date = mdate() + 300000LL;
+        *pi_obj_destroyed_date = mdate() + I64C(300000);
     }
     else
     {