mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
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:
parent
636d47d2d6
commit
11f298a338
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue