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 20:02:25 +0100 |
commit | 548fd12e480e03835e02110c4fdfccfe7ef0a596 (patch) | |
tree | 1ad1ac6749f897b6d3de215805bae5841aaa2b11 | |
parent | 1bd1db1a2d782f19a239022decacbac17049e909 (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 af986a6..d505a7f 100644 --- a/src/trau/osmo_ortp.c +++ b/src/trau/osmo_ortp.c @@ -549,8 +549,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, " |