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.
This commit is contained in:
Luis de Bethencourt 2016-02-04 12:17:31 +00:00
parent 2a49811721
commit aeed18a2bf

View file

@ -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 *