From: Sebastian Dröge Date: Sun, 22 Feb 2009 18:18:41 +0000 (+0100) Subject: x(v)imagesink: Correctly cast to GstBuffer * before passing to gst_buffer_unref() X-Git-Tag: 1.19.3~511^2~9994 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8c74d858baf932def116179b373e07892cc825ce;p=platform%2Fupstream%2Fgstreamer.git x(v)imagesink: Correctly cast to GstBuffer * before passing to gst_buffer_unref() --- diff --git a/sys/ximage/ximagesink.c b/sys/ximage/ximagesink.c index 7ba00c0..8358779 100644 --- a/sys/ximage/ximagesink.c +++ b/sys/ximage/ximagesink.c @@ -701,7 +701,7 @@ gst_ximagesink_ximage_put (GstXImageSink * ximagesink, GstXImageBuffer * ximage) if (ximage && ximagesink->cur_image != ximage) { if (ximagesink->cur_image) { GST_LOG_OBJECT (ximagesink, "unreffing %p", ximagesink->cur_image); - gst_buffer_unref (ximagesink->cur_image); + gst_buffer_unref (GST_BUFFER_CAST (ximagesink->cur_image)); } GST_LOG_OBJECT (ximagesink, "reffing %p as our current image", ximage); ximagesink->cur_image = @@ -2112,11 +2112,11 @@ gst_ximagesink_reset (GstXImageSink * ximagesink) g_thread_join (thread); if (ximagesink->ximage) { - gst_buffer_unref (ximagesink->ximage); + gst_buffer_unref (GST_BUFFER_CAST (ximagesink->ximage)); ximagesink->ximage = NULL; } if (ximagesink->cur_image) { - gst_buffer_unref (ximagesink->cur_image); + gst_buffer_unref (GST_BUFFER_CAST (ximagesink->cur_image)); ximagesink->cur_image = NULL; } diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c index de827e7..b5566ef 100644 --- a/sys/xvimage/xvimagesink.c +++ b/sys/xvimage/xvimagesink.c @@ -789,7 +789,7 @@ gst_xvimagesink_xvimage_put (GstXvImageSink * xvimagesink, if (xvimage && xvimagesink->cur_image != xvimage) { if (xvimagesink->cur_image) { GST_LOG_OBJECT (xvimagesink, "unreffing %p", xvimagesink->cur_image); - gst_buffer_unref (xvimagesink->cur_image); + gst_buffer_unref (GST_BUFFER_CAST (xvimagesink->cur_image)); } GST_LOG_OBJECT (xvimagesink, "reffing %p as our current image", xvimage); xvimagesink->cur_image = @@ -3141,11 +3141,11 @@ gst_xvimagesink_reset (GstXvImageSink * xvimagesink) g_thread_join (thread); if (xvimagesink->cur_image) { - gst_buffer_unref (xvimagesink->cur_image); + gst_buffer_unref (GST_BUFFER_CAST (xvimagesink->cur_image)); xvimagesink->cur_image = NULL; } if (xvimagesink->xvimage) { - gst_buffer_unref (xvimagesink->xvimage); + gst_buffer_unref (GST_BUFFER_CAST (xvimagesink->xvimage)); xvimagesink->xvimage = NULL; }