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:
f55b274
)
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
Matthew Waters
<ystreet00@gmail.com>
Thu, 21 Aug 2014 05:01:27 +0000
(15:01 +1000)
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;