From 8c74d858baf932def116179b373e07892cc825ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 22 Feb 2009 19:18:41 +0100 Subject: [PATCH] x(v)imagesink: Correctly cast to GstBuffer * before passing to gst_buffer_unref() --- sys/ximage/ximagesink.c | 6 +++--- sys/xvimage/xvimagesink.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/ximage/ximagesink.c b/sys/ximage/ximagesink.c index 7ba00c0217..8358779f9b 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 de827e75f3..b5566efc8b 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; }