Mercurial > mplayer.hg
comparison libmpdvdkit2/device.c @ 13011:5dc4583b1901
mpdvdkit now accepts X:\ as a device name, as well as X:
author | joey |
---|---|
date | Thu, 12 Aug 2004 22:37:08 +0000 |
parents | 002e7a679a05 |
children | c2ddedd0619e |
comparison
equal
deleted
inserted
replaced
13010:047bbb973011 | 13011:5dc4583b1901 |
---|---|
132 snprintf( psz_debug, 199, "opening target `%s'", psz_device ); | 132 snprintf( psz_debug, 199, "opening target `%s'", psz_device ); |
133 psz_debug[199] = '\0'; | 133 psz_debug[199] = '\0'; |
134 _dvdcss_debug( dvdcss, psz_debug ); | 134 _dvdcss_debug( dvdcss, psz_debug ); |
135 | 135 |
136 #if defined( WIN32 ) | 136 #if defined( WIN32 ) |
137 /* If device is not "X:", we are actually opening a file. */ | 137 dvdcss->b_file = 1; |
138 dvdcss->b_file = !psz_device[0] || psz_device[1] != ':' || psz_device[2]; | 138 /* If device is "X:" or "X:\", we are not actually opening a file. */ |
139 if (psz_device[0] && psz_device[1] == ':' && | |
140 (!psz_device[2] || (psz_device[2] == '\\' && !psz_device[3]))) | |
141 dvdcss->b_file = 0; | |
139 | 142 |
140 /* Initialize readv temporary buffer */ | 143 /* Initialize readv temporary buffer */ |
141 dvdcss->p_readv_buffer = NULL; | 144 dvdcss->p_readv_buffer = NULL; |
142 dvdcss->i_readv_buf_size = 0; | 145 dvdcss->i_readv_buf_size = 0; |
143 | 146 |