mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
examples/wayland: unref GstContext after use
This commit is contained in:
parent
09d41b0b7d
commit
21a56b396c
2 changed files with 2 additions and 0 deletions
|
@ -95,6 +95,7 @@ bus_sync_handler (GstBus * bus, GstMessage * message, gpointer user_data)
|
|||
display_handle = gdk_wayland_display_get_wl_display (display);
|
||||
context = gst_wayland_display_handle_context_new (display_handle);
|
||||
gst_element_set_context (GST_ELEMENT (GST_MESSAGE_SRC (message)), context);
|
||||
gst_context_unref (context);
|
||||
|
||||
goto drop;
|
||||
} else if (gst_is_video_overlay_prepare_window_handle_message (message)) {
|
||||
|
|
|
@ -80,6 +80,7 @@ bus_sync_handler (GstBus * bus, GstMessage * message, gpointer user_data)
|
|||
GstContext *context;
|
||||
context = gst_wayland_display_handle_context_new (app->display);
|
||||
gst_element_set_context (GST_ELEMENT (GST_MESSAGE_SRC (message)), context);
|
||||
gst_context_unref (context);
|
||||
|
||||
goto drop;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue