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
7b721c86
Commit
7b721c86
authored
Oct 23, 2008
by
Olivier Aubert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
embedded snapshot: properly lock/unlock the cache object
parent
a721dbaf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
src/control/mediacontrol_audio_video.c
src/control/mediacontrol_audio_video.c
+0
-1
src/video_output/vout_intf.c
src/video_output/vout_intf.c
+5
-2
No files found.
src/control/mediacontrol_audio_video.c
View file @
7b721c86
...
...
@@ -94,7 +94,6 @@ mediacontrol_snapshot( mediacontrol_Instance *self,
vlc_object_release
(
p_vout
);
p_snapshot
=
(
snapshot_t
*
)
p_cache
->
p_private
;
vlc_object_unlock
(
p_cache
);
vlc_object_release
(
p_cache
);
vlc_object_release
(
p_input
);
...
...
src/video_output/vout_intf.c
View file @
7b721c86
...
...
@@ -639,8 +639,7 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
snapshot_t
*
p_snapshot
;
size_t
i_size
;
/* Object must be locked. We will unlock it once we get the
snapshot and written it to p_private */
vlc_object_lock
(
p_dest
);
p_dest
->
p_private
=
NULL
;
/* Save the snapshot to a memory zone */
...
...
@@ -650,6 +649,7 @@ 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_object_signal_unlocked
(
p_dest
);
vlc_object_unlock
(
p_dest
);
vlc_object_release
(
p_dest
);
return
VLC_EGENERIC
;
}
...
...
@@ -662,6 +662,7 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
block_Release
(
p_block
);
image_HandlerDelete
(
p_image
);
vlc_object_signal_unlocked
(
p_dest
);
vlc_object_unlock
(
p_dest
);
vlc_object_release
(
p_dest
);
return
VLC_ENOMEM
;
}
...
...
@@ -679,6 +680,7 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
free
(
p_snapshot
);
image_HandlerDelete
(
p_image
);
vlc_object_signal_unlocked
(
p_dest
);
vlc_object_unlock
(
p_dest
);
vlc_object_release
(
p_dest
);
return
VLC_ENOMEM
;
}
...
...
@@ -690,6 +692,7 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
/* Unlock the object */
vlc_object_signal_unlocked
(
p_dest
);
vlc_object_unlock
(
p_dest
);
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