GNOME Bugzilla – Bug 681508
Windowing system checks need to be done runtime, not compile time
Last modified: 2013-03-26 11:09:36 UTC
In various places clutter-gst code checks for the windowing system using the '#if defined (CLUTTER_WINDOWING_X11)' construct; this was fine before the clutter backends were loadable, but now it makes it impossible to correctly build clutter-gst if clutter itself is built with multiple backends. E.g., if both x11 and egl backends are enabled in clutter, the resulting clutter-gst will only work against the x11 backend ...
Created attachment 239853 [details] [review] playback: Fix X11 code running on non-X11 backends Check that we're running in X11 before calling clutter_x11_get_default_display() and using its result.
That should do it, there's a single X11-specific call in the whole thing (XInitThreads() just init's a few mutexes, it's harmless).
Review of attachment 239853 [details] [review]: looks good to me.
Attachment 239853 [details] pushed as b23c0c0 - playback: Fix X11 code running on non-X11 backends