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.
This commit is contained in:
Wim Taymans 2013-11-04 15:46:22 +01:00 committed by Wim Taymans
parent 9ae6981578
commit a065b4fcde

View 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 */