[vlc-commits] commit: unset "window" if the LibVLC drawable is cleared ( Rémi Denis-Courmont )

git at videolan.org git at videolan.org
Thu Jul 8 19:20:02 CEST 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jul  8 20:19:49 2010 +0300| [9671a6d62a80c0e1179d70728949564ba29bbc2b] | committer: Rémi Denis-Courmont 

unset "window" if the LibVLC drawable is cleared

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9671a6d62a80c0e1179d70728949564ba29bbc2b
---

 src/control/media_player.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/control/media_player.c b/src/control/media_player.c
index d83782b..964fcea 100644
--- a/src/control/media_player.c
+++ b/src/control/media_player.c
@@ -826,7 +826,7 @@ void libvlc_media_player_set_xwindow( libvlc_media_player_t *p_mi,
                                       uint32_t drawable )
 {
     assert (p_mi != NULL);
-    var_SetString (p_mi, "window", "embed-xid,any");
+    var_SetString (p_mi, "window", drawable ? "embed-xid,any" : "any");
     var_SetInteger (p_mi, "drawable-xid", drawable);
 }
 
@@ -846,7 +846,8 @@ void libvlc_media_player_set_hwnd( libvlc_media_player_t *p_mi,
 {
     assert (p_mi != NULL);
 #ifdef WIN32
-    var_SetString (p_mi, "window", "embed-hwnd,any");
+    var_SetString (p_mi, "window",
+                   (drawable != NULL) ? "embed-hwnd,any" : "");
     var_SetAddress (p_mi, "drawable-hwnd", drawable);
 #else
     (void) p_mi; (void) drawable;



More information about the vlc-commits mailing list