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:
Nirbheek Chauhan 2022-03-14 12:29:04 +05:30 committed by GStreamer Marge Bot
parent a6bb63dcd7
commit 8c2ef0f025
2 changed files with 5 additions and 1 deletions

View file

@ -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);

View file

@ -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);