From: Nicolas Dechesne Date: Thu, 22 Dec 2016 17:45:10 +0000 (+0100) Subject: tools: gst-launch: set GST_GL_XINITTHREADS X-Git-Tag: 1.12.0~129 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d5dba8d058081f0b41d3b25efddc5edbd3a5120;p=platform%2Fupstream%2Fgstreamer.git tools: gst-launch: set GST_GL_XINITTHREADS This ensure that XInitThreads is called and so gl contexts are properly initialized. https://bugzilla.gnome.org/show_bug.cgi?id=776401 --- diff --git a/tools/gst-launch.c b/tools/gst-launch.c index 006eeae..c0bef9f 100644 --- a/tools/gst-launch.c +++ b/tools/gst-launch.c @@ -1005,6 +1005,8 @@ main (int argc, char *argv[]) #endif g_set_prgname ("gst-launch-" GST_API_VERSION); + /* Ensure XInitThreads() is called if/when needed */ + g_setenv ("GST_GL_XINITTHREADS", "1", TRUE); #ifndef GST_DISABLE_OPTION_PARSING ctx = g_option_context_new ("PIPELINE-DESCRIPTION");