rtpsource: Do not try to push NULL buffers

If update_receiver_stats() fails, we can't really do anything with this buffer
anymore and have to drop it. This happens if there's a big seqnum
discontinuity for example.

https://bugzilla.gnome.org/show_bug.cgi?id=751311
This commit is contained in:
Jose Antonio Santos Cadenas 2015-06-22 11:28:13 +02:00 committed by Sebastian Dröge
parent 636d47d2d6
commit 11f298a338

View file

@ -1216,12 +1216,14 @@ rtp_source_send_rtp (RTPSource * src, RTPPacketInfo * pinfo)
/* we are a sender now */
src->is_sender = TRUE;
/* we are also a receiver of our packets */
if (!update_receiver_stats (src, pinfo))
return GST_FLOW_OK;
/* update stats for the SR */
src->stats.packets_sent += pinfo->packets;
src->stats.octets_sent += pinfo->payload_len;
src->bytes_sent += pinfo->payload_len;
/* we are also a receiver of our packets */
update_receiver_stats (src, pinfo);
running_time = pinfo->running_time;