mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
gl/calayer: don't leak a gl shader object
We will always overwrite the ca_sink->redisplay_shader without freeing the object.
This commit is contained in:
parent
cfff5d819e
commit
61b51b82ed
1 changed files with 0 additions and 2 deletions
|
@ -891,8 +891,6 @@ gst_ca_opengl_layer_sink_thread_init_redisplay (GstCAOpenGLLayerSink * ca_sink)
|
|||
const GstGLFuncs *gl = ca_sink->context->gl_vtable;
|
||||
GError *error = NULL;
|
||||
|
||||
ca_sink->redisplay_shader = gst_gl_shader_new (ca_sink->context);
|
||||
|
||||
if (!(ca_sink->redisplay_shader = gst_gl_shader_new_default (ca_sink->context, &error))) {
|
||||
GST_ERROR_OBJECT (ca_sink, "Failed to link shader: %s", error->message);
|
||||
gst_ca_opengl_layer_sink_cleanup_glthread (ca_sink);
|
||||
|
|
Loading…
Reference in a new issue