mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-09 07:52:36 +00:00
gl/eagl: Unref context after setting a window handle
gst_gl_window_get_context() returns a new reference. Hopefully fixes https://bugzilla.gnome.org/show_bug.cgi?id=753758
This commit is contained in:
parent
369acd42c9
commit
3d4f982045
1 changed files with 2 additions and 0 deletions
|
@ -114,6 +114,8 @@ gst_gl_window_eagl_set_window_handle (GstGLWindow * window, guintptr handle)
|
||||||
window_eagl->priv->view = (UIView *) handle;
|
window_eagl->priv->view = (UIView *) handle;
|
||||||
GST_INFO_OBJECT (context, "handle set, updating layer");
|
GST_INFO_OBJECT (context, "handle set, updating layer");
|
||||||
gst_gl_context_eagl_update_layer (context);
|
gst_gl_context_eagl_update_layer (context);
|
||||||
|
|
||||||
|
gst_object_unref (context);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue