rtpmanager: Fixed a copy & paste error
authorPeter Kjellerstedt <pkj@axis.com>
Tue, 1 Sep 2009 13:06:46 +0000 (15:06 +0200)
committerPeter Kjellerstedt <pkj@axis.com>
Tue, 1 Sep 2009 13:06:46 +0000 (15:06 +0200)
gst/rtpmanager/gstrtpsession.c

index aeb42426486282742eee603d3146d3f6f82c893f..be749dea42a90892831c3eb3f02301387ffd1c2d 100644 (file)
@@ -1025,7 +1025,7 @@ gst_rtp_session_send_rtcp (RTPSession * sess, RTPSource * src,
       caps = gst_caps_new_simple ("application/x-rtcp", NULL);
       gst_pad_set_caps (rtcp_src, caps);
     } else
-      gst_caps_unref (caps);
+      gst_caps_ref (caps);
     gst_buffer_set_caps (buffer, caps);
     gst_caps_unref (caps);
 
@@ -1084,7 +1084,7 @@ gst_rtp_session_sync_rtcp (RTPSession * sess, RTPSource * src,
       caps = gst_caps_new_simple ("application/x-rtcp", NULL);
       gst_pad_set_caps (sync_src, caps);
     } else
-      gst_caps_unref (caps);
+      gst_caps_ref (caps);
     gst_buffer_set_caps (buffer, caps);
     gst_caps_unref (caps);