Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

v4l2src: fix caps leak

  • Loading branch information...
commit b0608128b10d573918f658edef97a415a4caa466 1 parent 4c2a206
Vincent Penquerc'h authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  sys/v4l2/gstv4l2src.c
View
3  sys/v4l2/gstv4l2src.c
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.