XCB/window: force window provider when libvlc_*_set_xid() is used
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 8 Jul 2010 17:07:15 +0000 (20:07 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 8 Jul 2010 17:08:36 +0000 (20:08 +0300)
We cannot drop the priority to zero. This would break rare but
functional use of `vlc --drawable-xid $WINDOWID`.

modules/video_output/xcb/window.c
src/control/media_player.c

index dc1c708..0f23762 100644 (file)
@@ -74,6 +74,7 @@ vlc_module_begin ()
     set_subcategory (SUBCAT_VIDEO_VOUT)
     set_capability ("vout window xid", 70)
     set_callbacks (EmOpen, EmClose)
+    add_shortcut ("embed-xid")
 
     add_integer ("drawable-xid", 0, NULL, XID_TEXT, XID_LONGTEXT, true)
         change_volatile ()
index 7b73bf8..d83782b 100644 (file)
@@ -826,6 +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_SetInteger (p_mi, "drawable-xid", drawable);
 }