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
474d2d36
Commit
474d2d36
authored
Apr 11, 2009
by
Pierre d'Herbemont
Committed by
Pierre d'Herbemont
Apr 11, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libvlc: Export _get/set_nsobject.
parent
cc6d6cb6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
0 deletions
+45
-0
include/vlc/libvlc.h
include/vlc/libvlc.h
+16
-0
src/control/libvlc_internal.h
src/control/libvlc_internal.h
+1
-0
src/control/media_player.c
src/control/media_player.c
+26
-0
src/libvlc.sym
src/libvlc.sym
+2
-0
No files found.
include/vlc/libvlc.h
View file @
474d2d36
...
...
@@ -555,6 +555,22 @@ VLC_PUBLIC_API void libvlc_media_player_pause ( libvlc_media_player_t *, libvlc_
*/
VLC_PUBLIC_API
void
libvlc_media_player_stop
(
libvlc_media_player_t
*
,
libvlc_exception_t
*
);
/**
* Set the agl handler where the media player should render its video output.
*
* \param p_mi the Media Player
* \param drawable the agl handler
* \param p_e an initialized exception pointer
*/
VLC_PUBLIC_API
void
libvlc_media_player_set_nsobject
(
libvlc_media_player_t
*
p_mi
,
void
*
drawable
,
libvlc_exception_t
*
p_e
);
/**
* Get the agl handler previously set with libvlc_media_player_set_agl().
*
* \return the agl handler or 0 if none where set
*/
VLC_PUBLIC_API
uint32_t
libvlc_media_player_get_nsobject
(
libvlc_media_player_t
*
p_mi
);
/**
* Set the agl handler where the media player should render its video output.
*
...
...
src/control/libvlc_internal.h
View file @
474d2d36
...
...
@@ -157,6 +157,7 @@ struct libvlc_media_player_t
struct
{
void
*
hwnd
;
void
*
nsobject
;
uint32_t
xid
;
uint32_t
agl
;
}
drawable
;
...
...
src/control/media_player.c
View file @
474d2d36
...
...
@@ -633,6 +633,13 @@ void libvlc_media_player_play( libvlc_media_player_t *p_mi,
var_Set
(
p_input_thread
,
"drawable-hwnd"
,
val
);
}
var_Create
(
p_input_thread
,
"drawable-nsobject"
,
VLC_VAR_ADDRESS
);
if
(
p_mi
->
drawable
.
nsobject
!=
NULL
)
{
vlc_value_t
val
=
{
.
p_address
=
p_mi
->
drawable
.
nsobject
};
var_Set
(
p_input_thread
,
"drawable-nsobject"
,
val
);
}
var_AddCallback
(
p_input_thread
,
"can-seek"
,
input_seekable_changed
,
p_mi
);
var_AddCallback
(
p_input_thread
,
"can-pause"
,
input_pausable_changed
,
p_mi
);
var_AddCallback
(
p_input_thread
,
"intf-event"
,
input_event_changed
,
p_mi
);
...
...
@@ -718,6 +725,25 @@ void libvlc_media_player_stop( libvlc_media_player_t *p_mi,
}
}
/**************************************************************************
* set_nsobject
**************************************************************************/
void
libvlc_media_player_set_nsobject
(
libvlc_media_player_t
*
p_mi
,
void
*
drawable
,
libvlc_exception_t
*
p_e
)
{
(
void
)
p_e
;
p_mi
->
drawable
.
nsobject
=
drawable
;
}
/**************************************************************************
* get_agl
**************************************************************************/
uint32_t
libvlc_media_player_get_nsobject
(
libvlc_media_player_t
*
p_mi
)
{
return
p_mi
->
drawable
.
nsobject
;
}
/**************************************************************************
* set_agl
**************************************************************************/
...
...
src/libvlc.sym
View file @
474d2d36
...
...
@@ -130,6 +130,7 @@ libvlc_media_player_get_fps
libvlc_media_player_get_hwnd
libvlc_media_player_get_length
libvlc_media_player_get_media
libvlc_media_player_get_nsobject
libvlc_media_player_get_position
libvlc_media_player_get_rate
libvlc_media_player_get_state
...
...
@@ -154,6 +155,7 @@ libvlc_media_player_set_chapter
libvlc_media_player_set_drawable
libvlc_media_player_set_hwnd
libvlc_media_player_set_media
libvlc_media_player_set_nsobject
libvlc_media_player_set_position
libvlc_media_player_set_rate
libvlc_media_player_set_time
...
...
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