Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libdvdcss
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VideoLAN
libdvdcss
Commits
3a322908
Commit
3a322908
authored
Jul 24, 2015
by
Hannes Domani
Committed by
Jean-Baptiste Kempf
Oct 27, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always initialize readv temporary buffer.
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
41905a9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
src/device.c
src/device.c
+6
-4
No files found.
src/device.c
View file @
3a322908
...
...
@@ -350,6 +350,12 @@ int dvdcss_open_device ( dvdcss_t dvdcss )
}
print_debug
(
dvdcss
,
"opening target `%s'"
,
psz_device
);
#if defined( _WIN32 )
/* Initialize readv temporary buffer */
dvdcss
->
p_readv_buffer
=
NULL
;
dvdcss
->
i_readv_buf_size
=
0
;
#endif
/* if callback functions are initialized */
if
(
dvdcss
->
p_stream
)
{
...
...
@@ -367,10 +373,6 @@ int dvdcss_open_device ( dvdcss_t dvdcss )
(
!
psz_device
[
2
]
||
(
psz_device
[
2
]
==
'\\'
&&
!
psz_device
[
3
])))
dvdcss
->
b_file
=
0
;
/* Initialize readv temporary buffer */
dvdcss
->
p_readv_buffer
=
NULL
;
dvdcss
->
i_readv_buf_size
=
0
;
if
(
!
dvdcss
->
b_file
)
{
print_debug
(
dvdcss
,
"using Win2K API for access"
);
...
...
Write
Preview
Markdown
is supported
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