#include <fcntl.h>
#include <sys/types.h>
+#include <sys/stat.h>
#include <string.h>
#include <errno.h>
-#ifdef STRNCASECMP_IN_STRINGS_H
-# include <strings.h>
-#endif
-
#if defined( WIN32 )
# include <io.h> /* read() */
#else
free( psz_orig );
return -1;
}
- psz_source = config_GetPszVariable( INPUT_VCD_DEVICE_VAR );
+ psz_source = config_GetPszVariable( "vcd_device" );
}
/* test the type of file given */
{
thread_vcd_data_t *p_vcd = (thread_vcd_data_t *)p_input->p_access_data;
- input_BuffersEnd( p_input->p_method_data );
close( p_vcd->i_handle );
free( p_vcd );
}
{
es_descriptor_t * p_es;
+ if( p_input->stream.i_method != INPUT_METHOD_VCD )
+ {
+ return -1;
+ }
+
vlc_mutex_lock( &p_input->stream.stream_lock );
/* Set program information. */