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 committed by Tim-Philipp Müller
parent ed40eaca00
commit 265005a5e1

View file

@ -156,7 +156,6 @@ gst_gl_query_unset (GstGLQuery * query)
if (query->query_id)
gl->DeleteQueries (1, &query->query_id);
if (query->context)
gst_object_unref (query->context);
}