Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
libdvdcss
Commits
93ad73f7
Commit
93ad73f7
authored
Sep 13, 2006
by
Steve Lhomme
Browse files
now accepts X:\ as a device name, as well as X:
parent
4b0fa47c
Changes
1
Show whitespace changes
Inline
Side-by-side
src/device.c
View file @
93ad73f7
...
...
@@ -295,8 +295,11 @@ int _dvdcss_open ( dvdcss_t dvdcss )
print_debug
(
dvdcss
,
"opening target `%s'"
,
psz_device
);
#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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment