summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorNicolas Dechesne <nicolas.dechesne@linaro.org>2016-12-22 18:47:19 +0100
committerSebastian Dröge <sebastian@centricular.com>2016-12-23 12:18:10 +0200
commit7c0c59ccdf340522f5371c64564771b187b271c4 (patch)
tree32911b88212aa59a41b5b7cf7da4873ea7678550 /tools
parent98064ed9bfee75bf6b438db38b87f2387ec0d491 (diff)
downloadgst-plugins-base-7c0c59ccdf340522f5371c64564771b187b271c4.tar.gz
gst-plugins-base-7c0c59ccdf340522f5371c64564771b187b271c4.tar.xz
tools: gst-play: set GST_GL_XINITHREADS
This ensure that XInitThreads is called and so gl contexts are properly initialized. https://bugzilla.gnome.org/show_bug.cgi?id=776403
Diffstat (limited to 'tools')
-rw-r--r--tools/gst-play.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/gst-play.c b/tools/gst-play.c
index 5708737ac..189e8f707 100644
--- a/tools/gst-play.c
+++ b/tools/gst-play.c
@@ -1194,6 +1194,8 @@ main (int argc, char **argv)
#endif
g_set_prgname ("gst-play-" GST_API_VERSION);
+ /* Ensure XInitThreads() is called if/when needed */
+ g_setenv ("GST_GL_XINITTHREADS", "1", TRUE);
ctx = g_option_context_new ("FILE1|URI1 [FILE2|URI2] [FILE3|URI3] ...");
g_option_context_add_main_entries (ctx, options, GETTEXT_PACKAGE);