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
4b83963f
Commit
4b83963f
authored
Jun 13, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libvlc_media_player: Allow reparenting in libvlc_media_player_set_drawable().
parent
bcecd6e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
3 deletions
+22
-3
src/control/media_player.c
src/control/media_player.c
+22
-3
No files found.
src/control/media_player.c
View file @
4b83963f
...
...
@@ -668,11 +668,30 @@ void libvlc_media_player_stop( libvlc_media_player_t *p_mi,
* Set Drawable
**************************************************************************/
void
libvlc_media_player_set_drawable
(
libvlc_media_player_t
*
p_mi
,
libvlc_drawable_t
drawable
,
libvlc_exception_t
*
p_e
)
libvlc_drawable_t
drawable
,
libvlc_exception_t
*
p_e
)
{
VLC_UNUSED
(
p_e
);
input_thread_t
*
p_input_thread
;
vout_thread_t
*
p_vout
=
NULL
;
p_mi
->
drawable
=
drawable
;
/* Allow on the fly drawable changing. This is tricky has this may
* not be supported by every vout. We though can't disable it
* because of some creepy drawable type that are not flexible enough
* (Win32 HWND for instance) */
p_input_thread
=
libvlc_get_input_thread
(
p_mi
,
p_e
);
if
(
!
p_input_thread
)
return
;
p_vout
=
vlc_object_find
(
p_input_thread
,
VLC_OBJECT_VOUT
,
FIND_CHILD
);
if
(
!
p_vout
)
libvlc_exception_raise
(
p_exception
,
"No active video output"
);
else
{
vout_Control
(
p_vout
,
VOUT_REPARENT
,
drawable
);
vlc_object_release
(
p_vout
);
}
vlc_object_release
(
p_input_thread
);
}
/**************************************************************************
...
...
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