[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gstreamer-cvs
Subject:    gst-plugins-gl: context: refcount the display
From:       slomo () kemper ! freedesktop ! org (Sebastian Dröge)
Date:       2013-10-31 21:26:59
Message-ID: 20131031212659.441E076562 () kemper ! freedesktop ! org
[Download RAW message or body]

Module: gst-plugins-gl
Branch: master
Commit: ecb32f42df5ac058089311f81ef9def4644c4729
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-gl/commit/?id=ecb32f42df5ac058089311f81ef9def4644c4729


Author: Matthew Waters <ystreet00@gmail.com>
Date:   Tue Oct 22 21:48:00 2013 +1100

context: refcount the display

---

 gst-libs/gst/gl/gstglcontext.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/gst-libs/gst/gl/gstglcontext.c b/gst-libs/gst/gl/gstglcontext.c
index 0101a83..4ecace7 100644
--- a/gst-libs/gst/gl/gstglcontext.c
+++ b/gst-libs/gst/gl/gstglcontext.c
@@ -172,7 +172,7 @@ gst_gl_context_new (GstGLDisplay * display)
     return NULL;
   }
 
-  context->priv->display = display;
+  context->priv->display = gst_object_ref (display);
 
   return context;
 }
@@ -206,6 +206,7 @@ gst_gl_context_finalize (GObject * object)
   }
 
   gst_object_unref (context->window);
+  gst_object_unref (context->priv->display);
 
   if (context->gl_vtable) {
     g_slice_free (GstGLFuncs, context->gl_vtable);

_______________________________________________
gstreamer-commits mailing list
gstreamer-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic