gstpay: only send one caps
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 4 Nov 2013 14:46:22 +0000 (15:46 +0100)
committerWim Taymans <wim.taymans@gmail.com>
Wed, 13 Nov 2013 11:02:57 +0000 (12:02 +0100)
Only send one caps in a packet. Two caps can happen when setcaps is called and
the config-interval expires at the same time.

gst/rtp/gstrtpgstpay.c

index 669654c..016cefe 100644 (file)
@@ -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 */