* 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
*****************************************************************************/
"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" );
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;
}
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 */