mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
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:
parent
ed40eaca00
commit
265005a5e1
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue