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
This commit is contained in:
Thiago Santos 2010-09-21 10:59:42 -03:00
parent bf9ffd28b8
commit 657e80b108
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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;