/*****************************************************************************
* Preamble
*****************************************************************************/
-#include <stdlib.h>
#include <vlc/vlc.h>
-#include <vlc/input.h>
+#include <vlc_input.h>
+#include <vlc_access.h>
#include "cdrom.h"
#define CACHING_TEXT N_("Caching value in ms")
#define CACHING_LONGTEXT N_( \
- "Allows you to modify the default caching value for cdda streams. This " \
- "value should be set in milliseconds units." )
+ "Caching value for VCDs. This " \
+ "value should be set in milliseconds." )
vlc_module_begin();
set_shortname( _("VCD"));
}
}
+#ifdef WIN32
+ if( psz_dup[0] && psz_dup[1] == ':' &&
+ psz_dup[2] == '\\' && psz_dup[3] == '\0' ) psz_dup[2] = '\0';
+#endif
+
/* Open VCD */
if( !(vcddev = ioctl_Open( p_this, psz_dup )) )
{
{
input_title_t *t = p_sys->title[i] = vlc_input_title_New();
- fprintf( stderr, "title[%d] start=%d\n", i, p_sys->p_sectors[1+i] );
- fprintf( stderr, "title[%d] end=%d\n", i, p_sys->p_sectors[i+2] );
+ msg_Dbg( p_access, "title[%d] start=%d\n", i, p_sys->p_sectors[1+i] );
+ msg_Dbg( p_access, "title[%d] end=%d\n", i, p_sys->p_sectors[i+2] );
t->i_size = ( p_sys->p_sectors[i+2] - p_sys->p_sectors[i+1] ) *
(int64_t)VCD_DATA_SIZE;
}
case ACCESS_SET_PRIVATE_ID_STATE:
+ case ACCESS_GET_CONTENT_TYPE:
return VLC_EGENERIC;
default:
p_access->info.i_seekpoint = i_seekpoint;
}
+ /* Reset eof */
+ p_access->info.b_eof = VLC_FALSE;
+
return VLC_SUCCESS;
}
return VLC_SUCCESS;
}
+