Commit aeed18a2 authored by Luis de Bethencourt's avatar Luis de Bethencourt
Browse files

glquery: remove unnecessary pointer check

All uses of query->context in gstglquery.c assume it exists. We can assume
this as well before unrefing it. Furthermore, gst_object_unref() will just
silently return if it ever were to not exist.
parent 2a498117
......@@ -156,8 +156,7 @@ gst_gl_query_unset (GstGLQuery * query)
if (query->query_id)
gl->DeleteQueries (1, &query->query_id);
if (query->context)
gst_object_unref (query->context);
gst_object_unref (query->context);
GstGLQuery *
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment