mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +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 (peercaps);
|
||||
} else {
|
||||
/* no peer or peer have ANY caps, work with our own caps then */
|
||||
caps = thiscaps;
|
||||
}
|
||||
if (peercaps)
|
||||
gst_caps_unref (peercaps);
|
||||
if (caps) {
|
||||
caps = gst_caps_make_writable (caps);
|
||||
gst_caps_truncate (caps);
|
||||
|
|
Loading…
Reference in a new issue