* file.c: file input (file: access plug-in)
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
- * $Id: file.c,v 1.11 2003/02/20 01:52:45 sigmunau 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") );
+ 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 );
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 */