From: gb Date: Thu, 29 Apr 2010 09:43:40 +0000 (+0000) Subject: Fix GstVaapiDecoder::destroy(): GASyncQueue is not a GObject, likewise for GstBuffer. X-Git-Tag: accepted/trunk/20120822.173359~502 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7a3934d01da8e3223010afa2a8d48fd3b0779edc;p=profile%2Fivi%2Fgstreamer-vaapi.git Fix GstVaapiDecoder::destroy(): GASyncQueue is not a GObject, likewise for GstBuffer. --- diff --git a/gst-libs/gst/vaapi/gstvaapidecoder.c b/gst-libs/gst/vaapi/gstvaapidecoder.c index 2820048..46362e8 100644 --- a/gst-libs/gst/vaapi/gstvaapidecoder.c +++ b/gst-libs/gst/vaapi/gstvaapidecoder.c @@ -262,14 +262,14 @@ gst_vaapi_decoder_finalize(GObject *object) } if (priv->buffers) { - clear_async_queue(priv->buffers, (GDestroyNotify)g_object_unref); - g_object_unref(priv->buffers); + clear_async_queue(priv->buffers, (GDestroyNotify)gst_buffer_unref); + g_async_queue_unref(priv->buffers); priv->buffers = NULL; } if (priv->surfaces) { clear_async_queue(priv->surfaces, (GDestroyNotify)destroy_surface); - g_object_unref(priv->surfaces); + g_async_queue_unref(priv->surfaces); priv->surfaces = NULL; }