SRT stats send-duration-us duplicated
The send-duration-us
field is defined twice, and each time with a different type.
File ext/srt/gstsrtobject.c
function get_stats_for_srtsock
, in the is_sender
section there is:
...
/* time duration when UDT is sending data (idle time exclusive) */
"send-duration-us", G_TYPE_INT64, stats.usSndDuration,
...
/* busy sending time (i.e., idle time exclusive) */
"send-duration-us", G_TYPE_UINT64, stats.usSndDuration,
"negotiated-latency-ms", G_TYPE_INT, stats.msSndTsbPdDelay, NULL);
Another minor problem is *bytes += stats.byteSent;
for is_sender
section, but stats.byteRecvTotal
for else section. As you don't request clearing the stats in the srt_bstats
call it shouldn't make a difference, but formally it's wrong.