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:
5dd5b16
)
ges-source: Fix caps memory leak and compiler warnings when compiling without debug...
author
Sebastian Dröge
<sebastian@centricular.com>
Wed, 20 Sep 2017 09:59:40 +0000
(12:59 +0300)
committer
Sebastian Dröge
<sebastian@centricular.com>
Wed, 20 Sep 2017 09:59:40 +0000
(12:59 +0300)
ges/ges-source.c
patch
|
blob
|
history
diff --git
a/ges/ges-source.c
b/ges/ges-source.c
index
f0ac897
..
c0fc180
100644
(file)
--- a/
ges/ges-source.c
+++ b/
ges/ges-source.c
@@
-48,6
+48,7
@@
_pad_added_cb (GstElement * element, GstPad * srcpad, GstPad * sinkpad)
GstPadLinkReturn res;
gst_element_no_more_pads (element);
res = gst_pad_link (srcpad, sinkpad);
+#ifndef GST_DISABLE_GST_DEBUG
if (res != GST_PAD_LINK_OK) {
GstCaps *srccaps = NULL;
GstCaps *sinkcaps = NULL;
@@
-59,7
+60,10
@@
_pad_added_cb (GstElement * element, GstPad * srcpad, GstPad * sinkpad)
"conversion bin: %s (srcpad caps %" GST_PTR_FORMAT
" sinkpad caps: %" GST_PTR_FORMAT ")",
gst_pad_link_get_name (res), srccaps, sinkcaps);
+ gst_caps_unref (srccaps);
+ gst_caps_unref (sinkcaps);
}
+#endif
}
static void