diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2015-08-25 10:09:14 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2015-08-25 10:09:14 +0300 |
commit | 5c106c0c2af22192fdc2ffbf110795f738e5adb6 (patch) | |
tree | 0b441a53d8948e7b2b9fd2f77e10302c5a6e328d /gst-libs | |
parent | 9f5d96271964d1ccab9272b4efa91f98ba099f29 (diff) | |
download | gstreamer-plugins-bad-5c106c0c2af22192fdc2ffbf110795f738e5adb6.tar.gz |
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
Diffstat (limited to 'gst-libs')
-rw-r--r-- | gst-libs/gst/gl/eagl/gstglwindow_eagl.m | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gst-libs/gst/gl/eagl/gstglwindow_eagl.m b/gst-libs/gst/gl/eagl/gstglwindow_eagl.m index 359b2b59a..9d37b14ad 100644 --- a/gst-libs/gst/gl/eagl/gstglwindow_eagl.m +++ b/gst-libs/gst/gl/eagl/gstglwindow_eagl.m @@ -114,6 +114,8 @@ gst_gl_window_eagl_set_window_handle (GstGLWindow * window, guintptr handle) window_eagl->priv->view = (UIView *) handle; GST_INFO_OBJECT (context, "handle set, updating layer"); gst_gl_context_eagl_update_layer (context); + + gst_object_unref (context); } static void |