if (!(caps = GST_PAD_CAPS (rtcp_src))) {
caps = gst_caps_new_simple ("application/x-rtcp", NULL);
gst_pad_set_caps (rtcp_src, caps);
+ } else
gst_caps_unref (caps);
- }
gst_buffer_set_caps (buffer, caps);
+ gst_caps_unref (caps);
GST_LOG_OBJECT (rtpsession, "sending RTCP");
gst_object_ref (rtcp_src);
if (!(caps = GST_PAD_CAPS (sync_src))) {
caps = gst_caps_new_simple ("application/x-rtcp", NULL);
gst_pad_set_caps (sync_src, caps);
+ } else
gst_caps_unref (caps);
- }
gst_buffer_set_caps (buffer, caps);
+ gst_caps_unref (caps);
gst_object_ref (sync_src);
GST_RTP_SESSION_UNLOCK (rtpsession);