mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +00:00
v4l2src: fix caps leak
This commit is contained in:
parent
4c2a2063cf
commit
b0608128b1
1 changed files with 2 additions and 1 deletions
|
@ -522,11 +522,12 @@ gst_v4l2src_negotiate (GstBaseSrc * basesrc)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
gst_caps_unref (thiscaps);
|
gst_caps_unref (thiscaps);
|
||||||
gst_caps_unref (peercaps);
|
|
||||||
} else {
|
} else {
|
||||||
/* no peer or peer have ANY caps, work with our own caps then */
|
/* no peer or peer have ANY caps, work with our own caps then */
|
||||||
caps = thiscaps;
|
caps = thiscaps;
|
||||||
}
|
}
|
||||||
|
if (peercaps)
|
||||||
|
gst_caps_unref (peercaps);
|
||||||
if (caps) {
|
if (caps) {
|
||||||
caps = gst_caps_make_writable (caps);
|
caps = gst_caps_make_writable (caps);
|
||||||
gst_caps_truncate (caps);
|
gst_caps_truncate (caps);
|
||||||
|
|
Loading…
Reference in a new issue