[vlc-commits] lib: rationalize/uniformize video window setters
Rémi Denis-Courmont
git at videolan.org
Wed Apr 15 17:42:15 CEST 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Apr 15 18:41:20 2015 +0300| [60ece175d7f754aa7d4b6d0ffaa67e412ca3f425] | committer: Rémi Denis-Courmont
lib: rationalize/uniformize video window setters
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=60ece175d7f754aa7d4b6d0ffaa67e412ca3f425
---
lib/media_player.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/lib/media_player.c b/lib/media_player.c
index b41d6f3..7f41ba4 100644
--- a/lib/media_player.c
+++ b/lib/media_player.c
@@ -963,8 +963,8 @@ void libvlc_video_set_callbacks( libvlc_media_player_t *mp,
var_SetAddress( mp, "vmem-unlock", unlock_cb );
var_SetAddress( mp, "vmem-display", display_cb );
var_SetAddress( mp, "vmem-data", opaque );
- var_SetString( mp, "vout", "vmem" );
var_SetString( mp, "avcodec-hw", "none" );
+ var_SetString( mp, "vout", "vmem" );
}
void libvlc_video_set_format_callbacks( libvlc_media_player_t *mp,
@@ -992,6 +992,7 @@ void libvlc_media_player_set_nsobject( libvlc_media_player_t *p_mi,
{
assert (p_mi != NULL);
#ifdef __APPLE__
+ var_SetString (p_mi, "avcodec-hw", "");
var_SetAddress (p_mi, "drawable-nsobject", drawable);
#else
(void) p_mi; (void)drawable;
@@ -1046,8 +1047,8 @@ void libvlc_media_player_set_xwindow( libvlc_media_player_t *p_mi,
assert (p_mi != NULL);
var_SetString (p_mi, "avcodec-hw", "");
- var_SetString (p_mi, "vout", drawable ? "xid" : "any");
- var_SetString (p_mi, "window", drawable ? "embed-xid,any" : "any");
+ var_SetString (p_mi, "vout", drawable ? "xid" : "");
+ var_SetString (p_mi, "window", drawable ? "embed-xid,any" : "");
var_SetInteger (p_mi, "drawable-xid", drawable);
}
@@ -1067,6 +1068,7 @@ void libvlc_media_player_set_hwnd( libvlc_media_player_t *p_mi,
{
assert (p_mi != NULL);
#if defined (_WIN32) || defined (__OS2__)
+ var_SetString (p_mi, "avcodec-hw", "");
var_SetString (p_mi, "window",
(drawable != NULL) ? "embed-hwnd,any" : "");
var_SetInteger (p_mi, "drawable-hwnd", (uintptr_t)drawable);
More information about the vlc-commits
mailing list