From a065b4fcdef49ddcb8c5135a95416477103ecd47 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 4 Nov 2013 15:46:22 +0100 Subject: [PATCH] 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. --- gst/rtp/gstrtpgstpay.c | 3 +++ 1 file changed, 3 insertions(+) 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 */ -- 2.7.4