Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
9deb8f56
Commit
9deb8f56
authored
Sep 07, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove set/get drawable
parent
f99ed598
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
76 deletions
+5
-76
include/vlc/deprecated.h
include/vlc/deprecated.h
+0
-30
src/control/media_player.c
src/control/media_player.c
+0
-42
src/control/mediacontrol_audio_video.c
src/control/mediacontrol_audio_video.c
+5
-2
src/libvlc.sym
src/libvlc.sym
+0
-2
No files found.
include/vlc/deprecated.h
View file @
9deb8f56
...
...
@@ -41,36 +41,6 @@ typedef int libvlc_drawable_t;
extern
"C"
{
# endif
/**
* Set the drawable where the media player should render its video output.
*
* On Windows 32-bits, a window handle (HWND) is expected.
* On Windows 64-bits, this function will always fail.
*
* On OSX 32-bits, a CGrafPort is expected.
* On OSX 64-bits, this function will always fail.
*
* On other platforms, an existing X11 window ID is expected. See
* libvlc_media_player_set_xwindow() for details.
*
* \param p_mi the Media Player
* \param drawable the libvlc_drawable_t where the media player
* should render its video
* \param p_e an initialized exception pointer
*/
VLC_DEPRECATED_API
void
libvlc_media_player_set_drawable
(
libvlc_media_player_t
*
,
libvlc_drawable_t
,
libvlc_exception_t
*
);
/**
* Get the drawable where the media player should render its video output
*
* \param p_mi the Media Player
* \param p_e an initialized exception pointer
* \return the libvlc_drawable_t where the media player
* should render its video
*/
VLC_DEPRECATED_API
libvlc_drawable_t
libvlc_media_player_get_drawable
(
libvlc_media_player_t
*
,
libvlc_exception_t
*
);
/*****************************************************************************
* Playlist (Deprecated)
*****************************************************************************/
...
...
src/control/media_player.c
View file @
9deb8f56
...
...
@@ -743,48 +743,6 @@ void *libvlc_media_player_get_hwnd( libvlc_media_player_t *p_mi )
return
p_mi
->
drawable
.
hwnd
;
}
/**************************************************************************
* Set Drawable
**************************************************************************/
void
libvlc_media_player_set_drawable
(
libvlc_media_player_t
*
p_mi
,
libvlc_drawable_t
drawable
,
libvlc_exception_t
*
p_e
)
{
#ifdef WIN32
if
(
sizeof
(
HWND
)
<=
sizeof
(
libvlc_drawable_t
))
p_mi
->
drawable
.
hwnd
=
(
HWND
)
drawable
;
else
libvlc_exception_raise
(
p_e
,
"Operation not supported"
);
#elif defined(__APPLE__)
p_mi
->
drawable
.
agl
=
drawable
;
(
void
)
p_e
;
#else
p_mi
->
drawable
.
xid
=
drawable
;
(
void
)
p_e
;
#endif
}
/**************************************************************************
* Get Drawable
**************************************************************************/
libvlc_drawable_t
libvlc_media_player_get_drawable
(
libvlc_media_player_t
*
p_mi
,
libvlc_exception_t
*
p_e
)
{
VLC_UNUSED
(
p_e
);
#ifdef WIN32
if
(
sizeof
(
HWND
)
<=
sizeof
(
libvlc_drawable_t
))
return
(
libvlc_drawable_t
)
p_mi
->
drawable
.
hwnd
;
else
return
0
;
#elif defined(__APPLE__)
return
p_mi
->
drawable
.
agl
;
#else
return
p_mi
->
drawable
.
xid
;
#endif
}
/**************************************************************************
* Getters for stream information
**************************************************************************/
...
...
src/control/mediacontrol_audio_video.c
View file @
9deb8f56
...
...
@@ -241,8 +241,11 @@ int mediacontrol_set_visual( mediacontrol_Instance *self,
mediacontrol_exception_init
(
exception
);
libvlc_exception_init
(
&
ex
);
libvlc_media_player_set_drawable
(
self
->
p_media_player
,
(
libvlc_drawable_t
)
visual_id
,
&
ex
);
#ifdef WIN32
libvlc_media_player_set_hwnd
(
self
->
p_media_player
,
visual_id
,
&
ex
);
#else
libvlc_media_player_set_xwindow
(
self
->
p_media_player
,
visual_id
,
&
ex
);
#endif
HANDLE_LIBVLC_EXCEPTION_ZERO
(
&
ex
);
return
true
;
}
...
...
src/libvlc.sym
View file @
9deb8f56
...
...
@@ -130,7 +130,6 @@ libvlc_media_player_get_agl
libvlc_media_player_get_chapter
libvlc_media_player_get_chapter_count
libvlc_media_player_get_chapter_count_for_title
libvlc_media_player_get_drawable
libvlc_media_player_get_fps
libvlc_media_player_get_hwnd
libvlc_media_player_get_length
...
...
@@ -156,7 +155,6 @@ libvlc_media_player_release
libvlc_media_player_retain
libvlc_media_player_set_agl
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
...
...
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