mpdvdkit now accepts X:\ as a device name, as well as X:

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13012 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
joey 2004-08-12 22:37:08 +00:00
parent eabfd291c4
commit 77e529d9f7
1 changed files with 5 additions and 2 deletions

View File

@ -134,8 +134,11 @@ int _dvdcss_open ( dvdcss_t dvdcss )
_dvdcss_debug( dvdcss, psz_debug );
#if defined( WIN32 )
/* If device is not "X:", we are actually opening a file. */
dvdcss->b_file = !psz_device[0] || psz_device[1] != ':' || psz_device[2];
dvdcss->b_file = 1;
/* If device is "X:" or "X:\", we are not actually opening a file. */
if (psz_device[0] && psz_device[1] == ':' &&
(!psz_device[2] || (psz_device[2] == '\\' && !psz_device[3])))
dvdcss->b_file = 0;
/* Initialize readv temporary buffer */
dvdcss->p_readv_buffer = NULL;