mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 10:25:33 +00:00
rtpbasedepayload: improve logging around negative gaps
When warning, it is important that the log will contain information to help debug the problem. Sequence-numbers are crucial here. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/725>
This commit is contained in:
parent
8aa29ada7f
commit
5464d420f9
1 changed files with 7 additions and 9 deletions
|
@ -455,14 +455,14 @@ gst_rtp_base_depayload_handle_buffer (GstRTPBaseDepayload * filter,
|
|||
* is not too old, we throw it away as a duplicate. Otherwise we
|
||||
* mark discont and continue assuming the sender has restarted. See
|
||||
* also RFC 4737. */
|
||||
GST_WARNING ("gap %d <= priv->max_reorder %d -> dropping %d",
|
||||
gap, priv->max_reorder, gap <= priv->max_reorder);
|
||||
if (gap <= priv->max_reorder)
|
||||
if (gap <= priv->max_reorder) {
|
||||
GST_WARNING_OBJECT (filter, "got old packet %u, expected %u, "
|
||||
"gap %d <= max_reorder (%d), dropping!",
|
||||
seqnum, priv->next_seqnum, gap, priv->max_reorder);
|
||||
goto dropping;
|
||||
|
||||
GST_LOG_OBJECT (filter,
|
||||
"%d > %d, packet too old, sender likely restarted", gap,
|
||||
priv->max_reorder);
|
||||
}
|
||||
GST_WARNING_OBJECT (filter, "got old packet %u, expected %u, "
|
||||
"marking discont", seqnum, priv->next_seqnum);
|
||||
discont = TRUE;
|
||||
}
|
||||
}
|
||||
|
@ -550,8 +550,6 @@ invalid_buffer:
|
|||
dropping:
|
||||
{
|
||||
gst_rtp_buffer_unmap (&rtp);
|
||||
GST_WARNING_OBJECT (filter, "%d <= %d, dropping old packet", gap,
|
||||
priv->max_reorder);
|
||||
gst_buffer_unref (in);
|
||||
return GST_FLOW_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue