rtpsession: Add a warning if an empty RTCP packet is tried to be sent
authorSebastian Dröge <sebastian@centricular.com>
Mon, 7 Dec 2015 12:41:51 +0000 (14:41 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 7 Dec 2015 12:41:51 +0000 (14:41 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=759119

gst/rtpmanager/rtpsession.c

index b006a3e..75908c0 100644 (file)
@@ -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;