projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac2fdb0
)
gl: check null before unref GstGLDisplay
author
Wang Xin-yu (王昕宇)
<comicfans44@gmail.com>
Wed, 20 Aug 2014 01:37:01 +0000
(09:37 +0800)
committer
Tim-Philipp Müller
<tim@centricular.com>
Sat, 9 Dec 2017 19:31:45 +0000
(19:31 +0000)
gst-libs/gst/gl/gstglutils.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/gl/gstglutils.c
b/gst-libs/gst/gl/gstglutils.c
index
2e1b0dd
..
c2ea06f
100644
(file)
--- a/
gst-libs/gst/gl/gstglutils.c
+++ b/
gst-libs/gst/gl/gstglutils.c
@@
-770,7
+770,9
@@
gst_gl_handle_set_context (GstElement * element, GstContext * context,
if (replacement) {
GstGLDisplay *old = *display;
*display = replacement;
- gst_object_unref (old);
+
+ if (old)
+ gst_object_unref (old);
}
return TRUE;