Commit b0608128 authored by Vincent Penquerc'h's avatar Vincent Penquerc'h
Browse files

v4l2src: fix caps leak

parent 4c2a2063
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment