Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
116fe975
Commit
116fe975
authored
Jan 14, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
snapshot: release the input ASAP
parent
3c7d7fa8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/control/mediacontrol_audio_video.c
src/control/mediacontrol_audio_video.c
+2
-1
No files found.
src/control/mediacontrol_audio_video.c
View file @
116fe975
...
@@ -72,7 +72,9 @@ mediacontrol_snapshot( mediacontrol_Instance *self,
...
@@ -72,7 +72,9 @@ mediacontrol_snapshot( mediacontrol_Instance *self,
{
{
RAISE_NULL
(
mediacontrol_InternalException
,
"No input"
);
RAISE_NULL
(
mediacontrol_InternalException
,
"No input"
);
}
}
p_vout
=
vlc_object_find
(
p_input
,
VLC_OBJECT_VOUT
,
FIND_CHILD
);
p_vout
=
vlc_object_find
(
p_input
,
VLC_OBJECT_VOUT
,
FIND_CHILD
);
vlc_object_release
(
p_input
);
if
(
!
p_vout
)
if
(
!
p_vout
)
{
{
RAISE_NULL
(
mediacontrol_InternalException
,
"No video output"
);
RAISE_NULL
(
mediacontrol_InternalException
,
"No video output"
);
...
@@ -96,7 +98,6 @@ mediacontrol_snapshot( mediacontrol_Instance *self,
...
@@ -96,7 +98,6 @@ mediacontrol_snapshot( mediacontrol_Instance *self,
p_snapshot
=
(
snapshot_t
*
)
p_cache
->
p_private
;
p_snapshot
=
(
snapshot_t
*
)
p_cache
->
p_private
;
vlc_object_unlock
(
p_cache
);
vlc_object_unlock
(
p_cache
);
vlc_object_release
(
p_cache
);
vlc_object_release
(
p_cache
);
vlc_object_release
(
p_input
);
if
(
p_snapshot
)
if
(
p_snapshot
)
{
{
...
...
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