Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
ebeebc55
Commit
ebeebc55
authored
Feb 23, 2006
by
Olivier Aubert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mediacontrol_audio_video.c: release vout in mediacontrol_snapshot()
parent
6093d524
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
src/control/mediacontrol_audio_video.c
src/control/mediacontrol_audio_video.c
+8
-8
No files found.
src/control/mediacontrol_audio_video.c
View file @
ebeebc55
...
...
@@ -67,28 +67,28 @@ mediacontrol_snapshot( mediacontrol_Instance *self,
exception
=
mediacontrol_exception_init
(
exception
);
p_vout
=
vlc_object_find
(
self
->
p_playlist
,
VLC_OBJECT_VOUT
,
FIND_CHILD
);
if
(
!
p_vout
)
{
RAISE
(
mediacontrol_InternalException
,
"No video output"
);
return
NULL
;
}
p_cache
=
vlc_object_create
(
self
->
p_playlist
,
VLC_OBJECT_GENERIC
);
if
(
p_cache
==
NULL
)
{
vlc_object_release
(
p_vout
);
msg_Err
(
self
->
p_playlist
,
"out of memory"
);
RAISE
(
mediacontrol_InternalException
,
"Out of memory"
);
return
NULL
;
}
p_vout
=
vlc_object_find
(
self
->
p_playlist
,
VLC_OBJECT_VOUT
,
FIND_CHILD
);
if
(
!
p_vout
)
{
RAISE
(
mediacontrol_InternalException
,
"No video output"
);
return
NULL
;
}
snprintf
(
path
,
255
,
"object:%d"
,
p_cache
->
i_object_id
);
var_SetString
(
p_vout
,
"snapshot-path"
,
path
);
var_SetString
(
p_vout
,
"snapshot-format"
,
"png"
);
vlc_mutex_lock
(
&
p_cache
->
object_lock
);
vout_Control
(
p_vout
,
VOUT_SNAPSHOT
);
vlc_cond_wait
(
&
p_cache
->
object_wait
,
&
p_cache
->
object_lock
);
vlc_object_release
(
p_vout
);
p_snapshot
=
(
snapshot_t
*
)
p_cache
->
p_private
;
vlc_object_destroy
(
p_cache
);
...
...
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