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:
21bc0d5
)
videomixer: Don't leak peer caps
author
Edward Hervey
<edward@centricular.com>
Thu, 12 Mar 2020 10:22:56 +0000
(11:22 +0100)
committer
Edward Hervey
<bilboed@bilboed.com>
Thu, 12 Mar 2020 10:22:56 +0000
(11:22 +0100)
gst/videomixer/videomixer2.c
patch
|
blob
|
history
diff --git
a/gst/videomixer/videomixer2.c
b/gst/videomixer/videomixer2.c
index
69a0a0f
..
e181e60
100644
(file)
--- a/
gst/videomixer/videomixer2.c
+++ b/
gst/videomixer/videomixer2.c
@@
-258,6
+258,7
@@
gst_videomixer2_update_src_caps (GstVideoMixer2 * mix)
tmp = gst_caps_intersect (caps, peercaps);
gst_caps_unref (caps);
gst_caps_unref (peercaps);
+ peercaps = NULL;
caps = tmp;
if (gst_caps_is_empty (caps)) {
GST_DEBUG_OBJECT (mix, "empty caps");
@@
-277,6
+278,8
@@
gst_videomixer2_update_src_caps (GstVideoMixer2 * mix)
gst_structure_get_int (s, "height", &info.height);
gst_structure_get_fraction (s, "fraction", &info.fps_n, &info.fps_d);
}
+ if (peercaps)
+ gst_caps_unref (peercaps);
gst_caps_unref (caps);
caps = gst_video_info_to_caps (&info);