projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb2063f
)
v4l2: mark caps from probe as MAY_BE_LEAKED
author
Guillaume Desmottes
<guillaume.desmottes@collabora.com>
Thu, 17 Jan 2019 14:30:25 +0000
(15:30 +0100)
committer
Nicolas Dufresne
<nicolas@ndufresne.ca>
Thu, 17 Jan 2019 15:05:45 +0000
(15:05 +0000)
sys/v4l2/gstv4l2.c
patch
|
blob
|
history
diff --git
a/sys/v4l2/gstv4l2.c
b/sys/v4l2/gstv4l2.c
index
56d2e71
..
c2c1d21
100644
(file)
--- a/
sys/v4l2/gstv4l2.c
+++ b/
sys/v4l2/gstv4l2.c
@@
-186,6
+186,10
@@
gst_v4l2_probe_and_register (GstPlugin * plugin)
basename = g_path_get_basename (it->device_path);
+ /* Caps won't be freed if the subclass is not instantiated */
+ GST_MINI_OBJECT_FLAG_SET (sink_caps, GST_MINI_OBJECT_FLAG_MAY_BE_LEAKED);
+ GST_MINI_OBJECT_FLAG_SET (src_caps, GST_MINI_OBJECT_FLAG_MAY_BE_LEAKED);
+
if (gst_v4l2_is_video_dec (sink_caps, src_caps)) {
gst_v4l2_video_dec_register (plugin, basename, it->device_path,
sink_caps, src_caps);