#if defined (GDK_WINDOWING_X11) || defined (GDK_WINDOWING_WIN32)
+static GstElement *xoverlay_element = NULL;
static gulong embed_xid = 0;
/* We set the xid here in response to the prepare-xwindow-id message via a
gst_structure_has_name (message->structure, "prepare-xwindow-id")) {
GstElement *element = GST_ELEMENT (GST_MESSAGE_SRC (message));
+ xoverlay_element = element;
+
g_print ("got prepare-xwindow-id, setting XID %lu\n", embed_xid);
if (g_object_class_find_property (G_OBJECT_GET_CLASS (element),
cairo_fill (cr);
return TRUE;
}
+
+ if (xoverlay_element)
+ gst_x_overlay_expose (GST_X_OVERLAY (xoverlay_element));
+
return FALSE;
}