seek: Only use embed_xid if HAVE_X is defined
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 2 Apr 2010 16:56:34 +0000 (18:56 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 2 Apr 2010 16:58:06 +0000 (18:58 +0200)
Fixes bug #614622.

tests/examples/seek/seek.c

index 0b9aa35cc378975b9d76a88f67018774c19acf03..9cd4d02fd74eeb3aa351fc019533e37df9323e18 100644 (file)
@@ -2952,8 +2952,10 @@ main (int argc, char **argv)
    * asks for the XID of the window to render onto */
   gtk_widget_realize (window);
 
+#ifdef HAVE_X
   /* we should have the XID now */
   g_assert (embed_xid != 0);
+#endif
 
   if (verbose) {
     g_signal_connect (pipeline, "deep_notify",