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;
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) {
//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
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;
}
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;
}