mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
twcc: Add some logging to debug TWCC feedback
This should allow people to debug when TWCC feedback is not enabled because they haven't set the extmap in the caps. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1952>
This commit is contained in:
parent
a6bb63dcd7
commit
8c2ef0f025
2 changed files with 5 additions and 1 deletions
|
@ -4245,6 +4245,8 @@ generate_twcc (const gchar * key, RTPSource * source, ReportData * data)
|
|||
return;
|
||||
}
|
||||
|
||||
GST_DEBUG ("generating TWCC feedback for source %08x", source->ssrc);
|
||||
|
||||
while ((buf = rtp_twcc_manager_get_feedback (sess->twcc, source->ssrc))) {
|
||||
ReportOutput *output = g_slice_new (ReportOutput);
|
||||
output->source = g_object_ref (source);
|
||||
|
|
|
@ -336,8 +336,10 @@ rtp_twcc_manager_get_recv_twcc_seqnum (RTPTWCCManager * twcc,
|
|||
gint32 val = -1;
|
||||
gpointer data;
|
||||
|
||||
if (twcc->recv_ext_id == 0)
|
||||
if (twcc->recv_ext_id == 0) {
|
||||
GST_DEBUG ("Received TWCC packet, but no extension registered; ignoring");
|
||||
return val;
|
||||
}
|
||||
|
||||
if (_get_twcc_seqnum_data (pinfo, twcc->recv_ext_id, &data)) {
|
||||
val = GST_READ_UINT16_BE (data);
|
||||
|
|
Loading…
Reference in a new issue