From: Wim Taymans Date: Mon, 4 Nov 2013 14:46:22 +0000 (+0100) Subject: gstpay: only send one caps X-Git-Tag: 1.3.1~580 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a065b4fcdef49ddcb8c5135a95416477103ecd47;p=platform%2Fupstream%2Fgst-plugins-good.git gstpay: only send one caps Only send one caps in a packet. Two caps can happen when setcaps is called and the config-interval expires at the same time. --- diff --git a/gst/rtp/gstrtpgstpay.c b/gst/rtp/gstrtpgstpay.c index 669654c..016cefe 100644 --- a/gst/rtp/gstrtpgstpay.c +++ b/gst/rtp/gstrtpgstpay.c @@ -411,6 +411,9 @@ gst_rtp_gst_pay_send_caps (GstRtpGSTPay * rtpgstpay, guint8 cv, GstCaps * caps) guint capslen; GstBuffer *outbuf; + if (rtpgstpay->flags & (1 << 7)) + return; + capsstr = gst_caps_to_string (caps); capslen = strlen (capsstr); /* for 0 byte */