glcolorconvert: Unref buffer with the correct function
authorSebastian Dröge <sebastian@centricular.com>
Thu, 27 Nov 2014 17:09:58 +0000 (18:09 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:50 +0000 (19:31 +0000)
gst-libs/gst/gl/gstglcolorconvert.c

index 290949d..5b758fd 100644 (file)
@@ -597,7 +597,7 @@ _gst_gl_color_convert_perform_unlocked (GstGLColorConvert * convert,
 
   if (!convert->priv->result) {
     if (convert->outbuf)
-      gst_object_unref (convert->outbuf);
+      gst_buffer_unref (convert->outbuf);
     convert->outbuf = NULL;
     return NULL;
   }