Commit 2f471051 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

rtpbin: Don't leak caps

parent 6be8225f
......@@ -2813,8 +2813,10 @@ caps_changed (GstPad * pad, GParamSpec * pspec, GstRtpBinSession * session)
s = gst_caps_get_structure (caps, 0);
/* get payload, finish when it's not there */
if (!gst_structure_get_int (s, "payload", &payload))
if (!gst_structure_get_int (s, "payload", &payload)) {
gst_caps_unref (caps);
GST_DEBUG_OBJECT (bin, "insert caps for payload %d", payload);
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