]> git.sesse.net Git - vlc/commitdiff
* modules/access/file.c: fixed large file support on win32.
authorGildas Bazin <gbazin@videolan.org>
Thu, 8 May 2003 15:58:56 +0000 (15:58 +0000)
committerGildas Bazin <gbazin@videolan.org>
Thu, 8 May 2003 15:58:56 +0000 (15:58 +0000)
* src/libvlc.[ch]: made the description of the translation option more explicit.

modules/access/file.c
src/libvlc.c
src/libvlc.h

index 4d961509a38677910becb54bb2ac99ee579386d4..7730f0fc8e1d067b4b9d9e38a43532a250765589 100644 (file)
@@ -2,7 +2,7 @@
  * file.c: file input (file: access plug-in)
  *****************************************************************************
  * Copyright (C) 2001, 2002 VideoLAN
- * $Id: file.c,v 1.18 2003/04/16 11:47:08 gbazin Exp $
+ * $Id: file.c,v 1.19 2003/05/08 15:58:56 gbazin Exp $
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
  *
 #   include <io.h>
 #endif
 
+/* stat() support for large files on win32 */
+#if defined( WIN32 ) && !defined( UNDER_CE )
+#define stat(a,b) _stati64(a,b)
+#define fstat(a,b) _fstati64(a,b)
+#endif
+
 /*****************************************************************************
  * Exported prototypes
  *****************************************************************************/
@@ -97,7 +103,11 @@ static int Open( vlc_object_t *p_this )
     char *              psz_name = p_input->psz_name;
 #ifdef HAVE_SYS_STAT_H
     int                 i_stat;
+#if defined( WIN32 ) && !defined( UNDER_CE )
+    struct _stati64     stat_info;
+#else
     struct stat         stat_info;
+#endif
 #endif
     _input_socket_t *   p_access_data;
     vlc_bool_t          b_stdin, b_kfir = 0;
@@ -365,7 +375,11 @@ static ssize_t Read( input_thread_t * p_input, byte_t * p_buffer, size_t i_len )
     if ( p_input->stream.p_selected_area->i_size != 0
             && (p_access_data->i_nb_reads % INPUT_FSTAT_NB_READS) == 0 )
     {
+#if defined( WIN32 ) && !defined( UNDER_CE )
+        struct _stati64 stat_info;
+#else
         struct stat stat_info;
+#endif
         if ( fstat( p_access_data->_socket.i_handle, &stat_info ) == -1 )
         {
 #   ifdef HAVE_ERRNO_H
index b3288c85aa19e7c555f1c7c935b483d43a8f049f..9ed877f967a56a7c381711e79336bea508a43e9a 100644 (file)
@@ -2,7 +2,7 @@
  * libvlc.c: main libvlc source
  *****************************************************************************
  * Copyright (C) 1998-2002 VideoLAN
- * $Id: libvlc.c,v 1.83 2003/05/08 14:15:36 titer Exp $
+ * $Id: libvlc.c,v 1.84 2003/05/08 15:58:44 gbazin Exp $
  *
  * Authors: Vincent Seguin <seguin@via.ecp.fr>
  *          Samuel Hocevar <sam@zoy.org>
@@ -337,6 +337,9 @@ int VLC_Init( int i_object, int i_argc, char *ppsz_argv[] )
         /* Reset the default domain */
         SetLanguage( psz_translation );
 
+        /* Translate "C" to the language code: "fr", "en_GB", "nl", "ru"... */
+        msg_Dbg( p_vlc, "translation test: code is \"%s\"", _("C") );
+
         textdomain( PACKAGE );
 
         module_EndBank( p_vlc );
index 18a0c8963f02cdd7cc5e0c39467f291189589476..79a6614e31619301ae481f87a814a9f8d4f3d657 100644 (file)
@@ -2,7 +2,7 @@
  * libvlc.h: main libvlc header
  *****************************************************************************
  * Copyright (C) 1998-2002 VideoLAN
- * $Id: libvlc.h,v 1.62 2003/05/08 14:15:36 titer Exp $
+ * $Id: libvlc.h,v 1.63 2003/05/08 15:58:44 gbazin Exp $
  *
  * Authors: Vincent Seguin <seguin@via.ecp.fr>
  *          Samuel Hocevar <sam@zoy.org>
@@ -57,9 +57,10 @@ static char *ppsz_sout_vcodec[] = { "", "mpeg1", "mpeg2", "mpeg4", NULL };
 
 #define TRANSLATION_TEXT N_("Translation")
 #define TRANSLATION_LONGTEXT N_( \
-    "This option allows you to set the language of the interface " \
-    "(e.g. 'fr', 'de'...). If not specified, the system language is " \
-    "auto-detected." )
+    "This option allows you to set the language of the interface or disable " \
+    "the translation alltogether " \
+    "(e.g. 'C' (for disable), 'fr', 'de', 'en_GB', ...). " \
+    "The system language is auto-detected if nothing is specified here." )
 
 #define COLOR_TEXT N_("Color messages")
 #define COLOR_LONGTEXT N_( \