[Diego Biurrun <diego at biurrun.de>] [PATCH] MPlayer changes to libdvdcss
Wout Mertens
wmertens at gentoo.org
Tue Jul 5 12:08:13 CEST 2005
On 05 Jul 2005, at 00:59, Christophe Massiot wrote:
>> #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;
>
> This breaks reading DVD devices on Win32.
Does it? Seems to me that it just adds a check for X:\ ...
(Not that I know anything about libdvdcss, I'm just a lurker ;-) )
Wout.
--
This is the libdvdcss-devel mailing-list, see http://developers.videolan.org/
To unsubscribe, go to: http://developers.videolan.org/lists.html
More information about the libdvdcss-devel
mailing list