Skip to content
Browse files

v4l2src: fix caps leak

  • Loading branch information...
1 parent 4c2a206 commit b0608128b10d573918f658edef97a415a4caa466 Vincent Penquerc'h committed
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);

0 comments on commit b060812

Please sign in to comment.
Something went wrong with that request. Please try again.