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
8820f0c6
Commit
8820f0c6
authored
Jul 17, 2007
by
Olivier Aubert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix locking issues in (embedded) snapshot code
parent
ff3a0f6c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
src/control/mediacontrol_audio_video.c
src/control/mediacontrol_audio_video.c
+1
-0
src/video_output/vout_intf.c
src/video_output/vout_intf.c
+0
-4
No files found.
src/control/mediacontrol_audio_video.c
View file @
8820f0c6
...
...
@@ -84,6 +84,7 @@ mediacontrol_snapshot( mediacontrol_Instance *self,
vlc_object_release
(
p_vout
);
p_snapshot
=
(
snapshot_t
*
)
p_cache
->
p_private
;
vlc_mutex_unlock
(
&
p_cache
->
object_lock
);
vlc_object_destroy
(
p_cache
);
if
(
p_snapshot
)
...
...
src/video_output/vout_intf.c
View file @
8820f0c6
...
...
@@ -524,7 +524,6 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
msg_Err
(
p_vout
,
"Could not get snapshot"
);
image_HandlerDelete
(
p_image
);
vlc_cond_signal
(
&
p_dest
->
object_wait
);
vlc_mutex_unlock
(
&
p_dest
->
object_lock
);
vlc_object_release
(
p_dest
);
return
VLC_EGENERIC
;
}
...
...
@@ -537,7 +536,6 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
block_Release
(
p_block
);
image_HandlerDelete
(
p_image
);
vlc_cond_signal
(
&
p_dest
->
object_wait
);
vlc_mutex_unlock
(
&
p_dest
->
object_lock
);
vlc_object_release
(
p_dest
);
return
VLC_ENOMEM
;
}
...
...
@@ -555,7 +553,6 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
free
(
p_snapshot
);
image_HandlerDelete
(
p_image
);
vlc_cond_signal
(
&
p_dest
->
object_wait
);
vlc_mutex_unlock
(
&
p_dest
->
object_lock
);
vlc_object_release
(
p_dest
);
return
VLC_ENOMEM
;
}
...
...
@@ -567,7 +564,6 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
/* Unlock the object */
vlc_cond_signal
(
&
p_dest
->
object_wait
);
vlc_mutex_unlock
(
&
p_dest
->
object_lock
);
vlc_object_release
(
p_dest
);
image_HandlerDelete
(
p_image
);
...
...
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