mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 16:21:17 +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
2a49811721
commit
aeed18a2bf
1 changed files with 1 additions and 2 deletions
|
@ -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 *
|
||||
|
|
Loading…
Reference in a new issue