mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
[311/906] Cast GstBuffer subclasses to GstBuffer * before passing to gst_buffer_unref()
This commit is contained in:
parent
d015d5862d
commit
c6ad604c8c
3 changed files with 5 additions and 5 deletions
|
@ -464,7 +464,7 @@ gst_gl_colorscale_transform (GstBaseTransform * trans, GstBuffer * inbuf,
|
|||
gst_gl_display_do_download (colorscale->display, gl_temp_buffer->texture,
|
||||
gl_temp_buffer->width, gl_temp_buffer->height, GST_BUFFER_DATA (outbuf));
|
||||
|
||||
gst_buffer_unref (gl_temp_buffer);
|
||||
gst_buffer_unref (GST_BUFFER_CAST (gl_temp_buffer));
|
||||
|
||||
if (isAlive)
|
||||
return GST_FLOW_OK;
|
||||
|
|
|
@ -378,7 +378,7 @@ gst_glimage_sink_stop (GstBaseSink * bsink)
|
|||
glimage_sink = GST_GLIMAGE_SINK (bsink);
|
||||
|
||||
if (glimage_sink->stored_buffer) {
|
||||
gst_buffer_unref (glimage_sink->stored_buffer);
|
||||
gst_buffer_unref (GST_BUFFER_CAST (glimage_sink->stored_buffer));
|
||||
glimage_sink->stored_buffer = NULL;
|
||||
}
|
||||
if (glimage_sink->display) {
|
||||
|
@ -530,7 +530,7 @@ gst_glimage_sink_render (GstBaseSink * bsink, GstBuffer * buf)
|
|||
|
||||
//the buffer is cleared when an other comes in
|
||||
if (glimage_sink->stored_buffer) {
|
||||
gst_buffer_unref (glimage_sink->stored_buffer);
|
||||
gst_buffer_unref (GST_BUFFER_CAST (glimage_sink->stored_buffer));
|
||||
glimage_sink->stored_buffer = NULL;
|
||||
}
|
||||
//store current buffer
|
||||
|
|
|
@ -526,7 +526,7 @@ gst_gl_test_src_create (GstPushSrc * psrc, GstBuffer ** buffer)
|
|||
outbuf = gst_gl_buffer_new (src->display, src->width, src->height);
|
||||
|
||||
if (!outbuf->texture) {
|
||||
gst_buffer_unref (outbuf);
|
||||
gst_buffer_unref (GST_BUFFER_CAST (outbuf));
|
||||
goto eos;
|
||||
}
|
||||
|
||||
|
@ -546,7 +546,7 @@ gst_gl_test_src_create (GstPushSrc * psrc, GstBuffer ** buffer)
|
|||
if (!gst_gl_display_use_fbo (src->display, src->width, src->height, src->fbo, src->depthbuffer, outbuf->texture, gst_gl_test_src_callback, 0, 0, 0, //no input texture
|
||||
0, src->width, 0, src->height,
|
||||
GST_GL_DISPLAY_PROJECTION_ORTHO2D, (gpointer) src)) {
|
||||
gst_buffer_unref (outbuf);
|
||||
gst_buffer_unref (GST_BUFFER_CAST (outbuf));
|
||||
goto eos;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue