From b13b80ea3984ecc21c1fb8430e9508fcfce0802a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 7 Dec 2015 14:41:51 +0200 Subject: [PATCH] rtpsession: Add a warning if an empty RTCP packet is tried to be sent https://bugzilla.gnome.org/show_bug.cgi?id=759119 --- gst/rtpmanager/rtpsession.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst/rtpmanager/rtpsession.c b/gst/rtpmanager/rtpsession.c index b006a3eae6..75908c00e6 100644 --- a/gst/rtpmanager/rtpsession.c +++ b/gst/rtpmanager/rtpsession.c @@ -4036,6 +4036,9 @@ done: empty_buffer = gst_buffer_get_size (buffer) == 0; + if (empty_buffer) + g_warning ("rtpsession: Trying to send an empty RTCP packet"); + if (sess->callbacks.send_rtcp && !empty_buffer && (do_not_suppress || !data.may_suppress)) { guint packet_size;