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; }