From 657e80b1082590858dc0a900b32f1c653fffbdce Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Tue, 21 Sep 2010 10:59:42 -0300 Subject: [PATCH] camerabin: examples: do not use deprecated GstXOverlay functions Replace the deprecated gst_x_overlay_set_xwindow_id with gst_x_overlay_set_window_handle Fixes #630255 --- tests/examples/camerabin/gst-camera.c | 2 +- tests/examples/camerabin/gst-camerabin-test.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;