diff --git a/tests/examples/camerabin/gst-camera.c b/tests/examples/camerabin/gst-camera.c index 58e2152ec2..8881f06899 100644 --- a/tests/examples/camerabin/gst-camera.c +++ b/tests/examples/camerabin/gst-camera.c @@ -275,7 +275,7 @@ my_bus_sync_callback (GstBus * bus, GstMessage * message, gpointer data) return GST_BUS_PASS; /* FIXME: make sure to get XID in main thread */ - gst_x_overlay_set_xwindow_id (GST_X_OVERLAY (message->src), + gst_x_overlay_set_window_handle (GST_X_OVERLAY (message->src), GDK_WINDOW_XWINDOW (gtk_widget_get_window (ui_drawing))); gst_message_unref (message); diff --git a/tests/examples/camerabin/gst-camerabin-test.c b/tests/examples/camerabin/gst-camerabin-test.c index 55954a9036..b91d486dda 100644 --- a/tests/examples/camerabin/gst-camerabin-test.c +++ b/tests/examples/camerabin/gst-camerabin-test.c @@ -270,7 +270,7 @@ bus_callback (GstBus * bus, GstMessage * message, gpointer data) if (st) { if (gst_structure_has_name (message->structure, "prepare-xwindow-id")) { if (!no_xwindow && window) { - gst_x_overlay_set_xwindow_id (GST_X_OVERLAY (GST_MESSAGE_SRC + gst_x_overlay_set_window_handle (GST_X_OVERLAY (GST_MESSAGE_SRC (message)), window); gst_message_unref (message); message = NULL;