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:
3efaa0d
)
glimagesink: Don't leak other-context
author
Sebastian Dröge
<sebastian@centricular.com>
Mon, 13 Oct 2014 09:56:03 +0000
(11:56 +0200)
committer
Sebastian Dröge
<sebastian@centricular.com>
Mon, 13 Oct 2014 09:57:22 +0000
(11:57 +0200)
ext/gl/gstglimagesink.c
patch
|
blob
|
history
diff --git
a/ext/gl/gstglimagesink.c
b/ext/gl/gstglimagesink.c
index
943f46e
..
07c4087
100644
(file)
--- a/
ext/gl/gstglimagesink.c
+++ b/
ext/gl/gstglimagesink.c
@@
-588,6
+588,11
@@
gst_glimage_sink_stop (GstBaseSink * bsink)
glimage_sink->pool = NULL;
}
+ if (glimage_sink->other_context) {
+ gst_object_unref (glimage_sink->other_context);
+ glimage_sink->other_context = NULL;
+ }
+
return TRUE;
}
@@
-679,6
+684,11
@@
gst_glimage_sink_change_state (GstElement * element, GstStateChange transition)
glimage_sink->context = NULL;
}
+ if (glimage_sink->other_context) {
+ gst_object_unref (glimage_sink->other_context);
+ glimage_sink->other_context = NULL;
+ }
+
if (glimage_sink->display) {
gst_object_unref (glimage_sink->display);
glimage_sink->display = NULL;