From bfb1260af45db7572a33e49b7b4e9a4be38d30e3 Mon Sep 17 00:00:00 2001 From: Peter Kjellerstedt Date: Tue, 1 Sep 2009 11:32:41 +0200 Subject: [PATCH] rtpmanager: Set caps in gst_rtp_session_send_rtcp() correctly again The test for when to set an RTCP caps on the output pad in gst_rtp_session_send_rtcp() accidentally got inverted in the last commit. --- gst/rtpmanager/gstrtpsession.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/rtpmanager/gstrtpsession.c b/gst/rtpmanager/gstrtpsession.c index ac19d085cd..928e38b3cb 100644 --- a/gst/rtpmanager/gstrtpsession.c +++ b/gst/rtpmanager/gstrtpsession.c @@ -1029,7 +1029,7 @@ gst_rtp_session_send_rtcp (RTPSession * sess, RTPSource * src, GstCaps *caps; /* set rtcp caps on output pad */ - if ((caps = GST_PAD_CAPS (rtcp_src))) { + if (!(caps = GST_PAD_CAPS (rtcp_src))) { caps = gst_caps_new_simple ("application/x-rtcp", NULL); gst_pad_set_caps (rtcp_src, caps); gst_caps_unref (caps);