mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
x(v)imagesink: Correctly cast to GstBuffer * before passing to gst_buffer_unref()
This commit is contained in:
parent
d659e8353d
commit
8c74d858ba
2 changed files with 6 additions and 6 deletions
|
@ -701,7 +701,7 @@ gst_ximagesink_ximage_put (GstXImageSink * ximagesink, GstXImageBuffer * ximage)
|
||||||
if (ximage && ximagesink->cur_image != ximage) {
|
if (ximage && ximagesink->cur_image != ximage) {
|
||||||
if (ximagesink->cur_image) {
|
if (ximagesink->cur_image) {
|
||||||
GST_LOG_OBJECT (ximagesink, "unreffing %p", 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);
|
GST_LOG_OBJECT (ximagesink, "reffing %p as our current image", ximage);
|
||||||
ximagesink->cur_image =
|
ximagesink->cur_image =
|
||||||
|
@ -2112,11 +2112,11 @@ gst_ximagesink_reset (GstXImageSink * ximagesink)
|
||||||
g_thread_join (thread);
|
g_thread_join (thread);
|
||||||
|
|
||||||
if (ximagesink->ximage) {
|
if (ximagesink->ximage) {
|
||||||
gst_buffer_unref (ximagesink->ximage);
|
gst_buffer_unref (GST_BUFFER_CAST (ximagesink->ximage));
|
||||||
ximagesink->ximage = NULL;
|
ximagesink->ximage = NULL;
|
||||||
}
|
}
|
||||||
if (ximagesink->cur_image) {
|
if (ximagesink->cur_image) {
|
||||||
gst_buffer_unref (ximagesink->cur_image);
|
gst_buffer_unref (GST_BUFFER_CAST (ximagesink->cur_image));
|
||||||
ximagesink->cur_image = NULL;
|
ximagesink->cur_image = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -789,7 +789,7 @@ gst_xvimagesink_xvimage_put (GstXvImageSink * xvimagesink,
|
||||||
if (xvimage && xvimagesink->cur_image != xvimage) {
|
if (xvimage && xvimagesink->cur_image != xvimage) {
|
||||||
if (xvimagesink->cur_image) {
|
if (xvimagesink->cur_image) {
|
||||||
GST_LOG_OBJECT (xvimagesink, "unreffing %p", 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);
|
GST_LOG_OBJECT (xvimagesink, "reffing %p as our current image", xvimage);
|
||||||
xvimagesink->cur_image =
|
xvimagesink->cur_image =
|
||||||
|
@ -3141,11 +3141,11 @@ gst_xvimagesink_reset (GstXvImageSink * xvimagesink)
|
||||||
g_thread_join (thread);
|
g_thread_join (thread);
|
||||||
|
|
||||||
if (xvimagesink->cur_image) {
|
if (xvimagesink->cur_image) {
|
||||||
gst_buffer_unref (xvimagesink->cur_image);
|
gst_buffer_unref (GST_BUFFER_CAST (xvimagesink->cur_image));
|
||||||
xvimagesink->cur_image = NULL;
|
xvimagesink->cur_image = NULL;
|
||||||
}
|
}
|
||||||
if (xvimagesink->xvimage) {
|
if (xvimagesink->xvimage) {
|
||||||
gst_buffer_unref (xvimagesink->xvimage);
|
gst_buffer_unref (GST_BUFFER_CAST (xvimagesink->xvimage));
|
||||||
xvimagesink->xvimage = NULL;
|
xvimagesink->xvimage = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue