Commit 895d129f authored by Clément Stenac's avatar Clément Stenac

Should fix playback of cdda://D:\ under win32. Please test (Refs:#490)

parent f28006a7
......@@ -154,6 +154,11 @@ static int Open( vlc_object_t *p_this )
}
else psz_name = strdup( p_access->psz_path );
#ifdef WIN32
if( psz_name[0] && psz_name[1] == ':' &&
psz_name[2] == '\\' && psz_name[3] == '\0' ) psz_name[2] = '\0';
#endif
/* Open CDDA */
if( (vcddev = ioctl_Open( VLC_OBJECT(p_access), psz_name )) == NULL )
{
......
......@@ -124,6 +124,11 @@ static int Open( vlc_object_t *p_this )
}
}
#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 )) )
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment