rtpsession: Add a warning if an empty RTCP packet is tried to be sent

https://bugzilla.gnome.org/show_bug.cgi?id=759119
This commit is contained in:
Sebastian Dröge 2015-12-07 14:41:51 +02:00
parent 189c291805
commit b13b80ea39

View file

@ -4036,6 +4036,9 @@ done:
empty_buffer = gst_buffer_get_size (buffer) == 0; 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 && if (sess->callbacks.send_rtcp &&
!empty_buffer && (do_not_suppress || !data.may_suppress)) { !empty_buffer && (do_not_suppress || !data.may_suppress)) {
guint packet_size; guint packet_size;