Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
16224f69
Commit
16224f69
authored
Oct 28, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DV: check return of vlc_clone
parent
3da4a170
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
modules/access/dv.c
modules/access/dv.c
+9
-4
No files found.
modules/access/dv.c
View file @
16224f69
...
...
@@ -206,17 +206,22 @@ static int Open( vlc_object_t *p_this )
p_sys
->
p_ev
=
calloc
(
1
,
sizeof
(
*
p_sys
->
p_ev
)
);
if
(
!
p_sys
->
p_ev
)
{
msg_Err
(
p_access
,
"failed to create event thread"
);
msg_Err
(
p_access
,
"failed to create event thread
struct
"
);
Close
(
p_this
);
return
VLC_E
GENERIC
;
return
VLC_E
NOMEM
;
}
p_sys
->
p_ev
->
p_frame
=
NULL
;
p_sys
->
p_ev
->
pp_last
=
&
p_sys
->
p_ev
->
p_frame
;
p_sys
->
p_ev
->
p_access
=
p_access
;
vlc_mutex_init
(
&
p_sys
->
p_ev
->
lock
);
vlc_clone
(
&
p_sys
->
p_ev
->
thread
,
Raw1394EventThread
,
p_sys
->
p_ev
,
VLC_THREAD_PRIORITY_OUTPUT
);
if
(
vlc_clone
(
&
p_sys
->
p_ev
->
thread
,
Raw1394EventThread
,
p_sys
->
p_ev
,
VLC_THREAD_PRIORITY_OUTPUT
)
)
{
msg_Err
(
p_access
,
"failed to clone event thread"
);
Close
(
p_this
);
return
VLC_EGENERIC
;
}
return
VLC_SUCCESS
;
}
...
...
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