[vlc-commits] libvlc: don't force the xid "vout display"
Thomas Guillem
git at videolan.org
Tue Oct 10 15:08:01 CEST 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Oct 10 15:01:26 2017 +0200| [0014603e717efc39242acc5c3dafc9390304415b] | committer: Thomas Guillem
libvlc: don't force the xid "vout display"
libvlc_media_player_set_xwindow() should only force the embed-xid "vout window"
plugin but not the xid "vout display" plugin.
This allows to use the GL "vout display" via EGL/GLX (with full hardware
acceleration) with an embedded X window.
Fixes #18907
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0014603e717efc39242acc5c3dafc9390304415b
---
lib/media_player.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/media_player.c b/lib/media_player.c
index 7247cdea85..ef34125aa5 100644
--- a/lib/media_player.c
+++ b/lib/media_player.c
@@ -1175,7 +1175,7 @@ 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" : "");
+ var_SetString (p_mi, "vout", "");
var_SetString (p_mi, "window", drawable ? "embed-xid,any" : "");
var_SetInteger (p_mi, "drawable-xid", drawable);
}
More information about the vlc-commits
mailing list