Commit 41af2f4a authored by Vineeth T M's avatar Vineeth T M Committed by Tim-Philipp Müller

glmixer: Possible null pointer dereference

While printing error message when context fails, error variable is not being used anymore
so it will lead to null pointer dereference
parent 7ec12467
......@@ -502,7 +502,6 @@ gst_gl_mixer_decide_allocation (GstGLBaseMixer * base_mix, GstQuery * query)
GstCaps *caps;
guint min, max, size;
gboolean update_pool;
GError *error = NULL;
guint out_width, out_height;
out_width = GST_VIDEO_INFO_WIDTH (&vagg->info);
......@@ -566,8 +565,7 @@ gst_gl_mixer_decide_allocation (GstGLBaseMixer * base_mix, GstQuery * query)
GST_ELEMENT_ERROR (mix, RESOURCE, NOT_FOUND, ("%s", error->message),
GST_ELEMENT_ERROR (mix, RESOURCE, NOT_FOUND, ("Context error"), (NULL));
return FALSE;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment