Skip to content

Commit

Permalink
tools: gst-play: set GST_GL_XINITHREADS
Browse files Browse the repository at this point in the history
This ensure that XInitThreads is called and so gl contexts are properly
initialized.

https://bugzilla.gnome.org/show_bug.cgi?id=776403
  • Loading branch information
ndechesne authored and sdroege committed Dec 23, 2016
1 parent 98064ed commit 7c0c59c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/gst-play.c
Expand Up @@ -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);
Expand Down

0 comments on commit 7c0c59c

Please sign in to comment.