diff options
author | Alexander Chemeris <Alexander.Chemeris@gmail.com> | 2016-12-27 19:53:02 +0100 |
---|---|---|
committer | Alexander Chemeris <Alexander.Chemeris@gmail.com> | 2016-12-27 19:57:01 +0100 |
commit | bb3129d103454df2e779989f88aaa640a1f93a71 (patch) | |
tree | 9dccb82834310179af9a4dacce034aba9e07fcb4 | |
parent | acc0779fbd3028d04117f12783f461e4ff4f44d6 (diff) |
ortp: Log an error if we fail to get RTP stats.
In this case we can see that something has failed instead of wondering
why we don't see anything in logs.
Change-Id: I6d9283d5b2f94a7d7ee978b29b0aedbb42c27c5f
-rw-r--r-- | src/trau/osmo_ortp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/trau/osmo_ortp.c b/src/trau/osmo_ortp.c index fc6c956..8b707ab 100644 --- a/src/trau/osmo_ortp.c +++ b/src/trau/osmo_ortp.c @@ -592,8 +592,10 @@ void osmo_rtp_socket_log_stats(struct osmo_rtp_socket *rs, const rtp_stats_t *stats; stats = rtp_session_get_stats(rs->sess); - if (!stats) + if (!stats) { + LOGP(subsys, level, "Failed to obtain RTP jitter stats!"); return; + } LOGP(subsys, level, "%sRTP Tx(%"PRIu64" pkts, %"PRIu64" bytes) " "Rx(%"PRIu64" pkts, %"PRIu64" bytes, %"PRIu64" late, " |