GstVideoGLTextureUploadMeta *gl_tex_upload_meta;
guint texture_ids[] = { 0, 0, 0, 0 };
gint i;
+ gboolean ret;
g_return_val_if_fail (upload != NULL, FALSE);
g_return_val_if_fail (buffer != NULL, FALSE);
upload->in_tex[i] = (GstGLMemory *) gst_buffer_peek_memory (buffer, i);
}
- _upload_memory (upload);
+ ret = _upload_memory (upload);
*tex_id = upload->out_tex->tex_id;
- return TRUE;
+ return ret;
}
#if GST_GL_HAVE_PLATFORM_EGL
GstGLMemory *gl_mem = (GstGLMemory *) mem;
upload->in_tex[0] = gl_mem;
- _upload_memory (upload);
+ ret = _upload_memory (upload);
upload->in_tex[0] = NULL;
- if (upload->priv->result)
+ if (ret)
return TRUE;
}
GLuint texture_id, gpointer data[GST_VIDEO_MAX_PLANES])
{
guint i;
+ gboolean ret;
g_return_val_if_fail (upload != NULL, FALSE);
g_return_val_if_fail (texture_id > 0, FALSE);
GST_LOG ("Uploading data into texture %u", texture_id);
- _upload_memory (upload);
+ ret = _upload_memory (upload);
for (i = 0; i < GST_VIDEO_INFO_N_PLANES (&upload->in_info); i++) {
gst_memory_unref ((GstMemory *) upload->in_tex[i]);
upload->in_tex[i] = NULL;
}
- return upload->priv->result;
+ return ret;
}
/* Called in the gl thread */
out_texture[0]->tex_id, in_texture[0], in_texture[1], in_texture[2],
in_width, in_height);
- gst_gl_color_convert_perform (upload->convert, upload->in_tex, out_texture);
+ res = gst_gl_color_convert_perform (upload->convert, upload->in_tex, out_texture);
out:
for (i--; i >= 0; i--) {