mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
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:
parent
bf9ffd28b8
commit
657e80b108
2 changed files with 2 additions and 2 deletions
|
@ -275,7 +275,7 @@ my_bus_sync_callback (GstBus * bus, GstMessage * message, gpointer data)
|
||||||
return GST_BUS_PASS;
|
return GST_BUS_PASS;
|
||||||
|
|
||||||
/* FIXME: make sure to get XID in main thread */
|
/* 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)));
|
GDK_WINDOW_XWINDOW (gtk_widget_get_window (ui_drawing)));
|
||||||
|
|
||||||
gst_message_unref (message);
|
gst_message_unref (message);
|
||||||
|
|
|
@ -270,7 +270,7 @@ bus_callback (GstBus * bus, GstMessage * message, gpointer data)
|
||||||
if (st) {
|
if (st) {
|
||||||
if (gst_structure_has_name (message->structure, "prepare-xwindow-id")) {
|
if (gst_structure_has_name (message->structure, "prepare-xwindow-id")) {
|
||||||
if (!no_xwindow && window) {
|
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);
|
(message)), window);
|
||||||
gst_message_unref (message);
|
gst_message_unref (message);
|
||||||
message = NULL;
|
message = NULL;
|
||||||
|
|
Loading…
Reference in a new issue