mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
rtprtxsend: Improve looging of not found RTX packet
When an RTX packet is not found, display a message that say if the packet have not arrived yet or if it was already removed from the RTX packet queue.
This commit is contained in:
parent
0aff8a7d30
commit
db647ee55b
1 changed files with 20 additions and 0 deletions
|
@ -494,6 +494,26 @@ gst_rtp_rtx_send_src_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
||||||
GST_LOG_OBJECT (rtx, "found %u", item->seqnum);
|
GST_LOG_OBJECT (rtx, "found %u", item->seqnum);
|
||||||
rtx_buf = gst_rtp_rtx_buffer_new (rtx, item->buffer);
|
rtx_buf = gst_rtp_rtx_buffer_new (rtx, item->buffer);
|
||||||
}
|
}
|
||||||
|
#ifndef GST_DISABLE_DEBUG
|
||||||
|
else {
|
||||||
|
BufferQueueItem *item = NULL;
|
||||||
|
|
||||||
|
iter = g_sequence_get_begin_iter (data->queue);
|
||||||
|
if (!g_sequence_iter_is_end (iter))
|
||||||
|
item = g_sequence_get (iter);
|
||||||
|
|
||||||
|
if (item && seqnum < item->seqnum) {
|
||||||
|
GST_DEBUG_OBJECT (rtx, "requested seqnum %u has already been "
|
||||||
|
"removed from the rtx queue; the first available is %u",
|
||||||
|
seqnum, item->seqnum);
|
||||||
|
} else {
|
||||||
|
GST_WARNING_OBJECT (rtx, "requested seqnum %u has not been "
|
||||||
|
"transmitted yet in the original stream; either the remote end "
|
||||||
|
"is not configured correctly, or the source is too slow",
|
||||||
|
seqnum);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
GST_OBJECT_UNLOCK (rtx);
|
GST_OBJECT_UNLOCK (rtx);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue