]> git.sesse.net Git - vlc/blobdiff - modules/access/file.c
made a format-only string untranslateable
[vlc] / modules / access / file.c
index bc02d6b6625087c8ad977a95546c05ef9dd252ec..61214ab285d59bd8d4d59c40236729ea2e9f2c11 100644 (file)
@@ -2,7 +2,7 @@
  * file.c: file input (file: access plug-in)
  *****************************************************************************
  * Copyright (C) 2001, 2002 VideoLAN
- * $Id: file.c,v 1.9 2003/01/05 20:45:29 massiot Exp $
+ * $Id: file.c,v 1.15 2003/03/30 18:14:35 gbazin Exp $
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
  *
 
 #ifdef HAVE_UNISTD_H
 #   include <unistd.h>
-#elif defined( _MSC_VER ) && defined( _WIN32 ) && !defined( UNDER_CE )
+#elif defined( WIN32 ) && !defined( UNDER_CE )
 #   include <io.h>
 #endif
 
+#if defined( WIN32 ) && !defined( UNDER_CE )
+#   ifdef lseek
+#       undef lseek
+#   endif
+#   define lseek _lseeki64
+#endif
 /*****************************************************************************
  * Exported prototypes
  *****************************************************************************/
@@ -66,9 +72,9 @@ static ssize_t Read   ( input_thread_t *, byte_t *, size_t );
     "value should be set in miliseconds units." )
 
 vlc_module_begin();
-    set_description( _("Standard filesystem file reading") );
-    add_category_hint( N_("file"), NULL );
-    add_integer( "file-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT, CACHING_LONGTEXT );
+    set_description( _("Standard filesystem file input") );
+    add_category_hint( N_("file"), NULL, VLC_TRUE );
+    add_integer( "file-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT, CACHING_LONGTEXT, VLC_TRUE );
     set_capability( "access", 50 );
     add_shortcut( "file" );
     add_shortcut( "stream" );
@@ -108,10 +114,10 @@ static int Open( vlc_object_t *p_this )
     if( !b_stdin && (i_stat = stat( psz_name, &stat_info )) == (-1) )
     {
 #   ifdef HAVE_ERRNO_H
-        msg_Err( p_input, "cannot stat() file `%s' (%s)",
-                          psz_name, strerror(errno));
+        msg_Warn( p_input, "cannot stat() file `%s' (%s)",
+                  psz_name, strerror(errno));
 #   else
-        msg_Err( p_input, "cannot stat() file `%s'", psz_name );
+        msg_Warn( p_input, "cannot stat() file `%s'", psz_name );
 #   endif
         return VLC_EGENERIC;
     }
@@ -124,7 +130,6 @@ static int Open( vlc_object_t *p_this )
 
     vlc_mutex_lock( &p_input->stream.stream_lock );
 
-    p_input->stream.b_connected = 1;
     if( *p_input->psz_access && !strncmp( p_input->psz_access, "stream", 7 ) )
     {
         /* stream:%s */