projects
/
platform
/
upstream
/
gst-plugins-bad.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a49811
)
glquery: remove unnecessary pointer check
author
Luis de Bethencourt
<luisbg@osg.samsung.com>
Thu, 4 Feb 2016 12:17:31 +0000
(12:17 +0000)
committer
Luis de Bethencourt
<luisbg@osg.samsung.com>
Thu, 4 Feb 2016 12:18:39 +0000
(12:18 +0000)
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.
gst-libs/gst/gl/gstglquery.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/gl/gstglquery.c
b/gst-libs/gst/gl/gstglquery.c
index
ff75925
..
45e6336
100644
(file)
--- a/
gst-libs/gst/gl/gstglquery.c
+++ b/
gst-libs/gst/gl/gstglquery.c
@@
-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 *