diff options
author | Peter Meerwald-Stadler <pmeerw@pmeerw.net> | 2017-03-07 15:44:06 +0100 |
---|---|---|
committer | Peter Meerwald-Stadler <pmeerw@pmeerw.net> | 2017-03-09 13:51:51 +0100 |
commit | add5a175b618b082cbe6cb53d7c7bf397dc71060 (patch) | |
tree | be9df9aa66c8cac5ea05f18553dd6cc99817c135 /src/modules | |
parent | 4cfd544f2117fa3afe19874c92b7d063c69c44c5 (diff) |
raop: Log if pa_atoi() fails, latency is not used anyway
Coverity ID: #1398152
Signed-off-by: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/raop/raop-client.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/raop/raop-client.c b/src/modules/raop/raop-client.c index e2cf04e8..78f86a45 100644 --- a/src/modules/raop/raop-client.c +++ b/src/modules/raop/raop-client.c @@ -1102,8 +1102,10 @@ static void rtsp_stream_cb(pa_rtsp_client *rtsp, pa_rtsp_state_t state, pa_rtsp_ pa_log_debug("RAOP: RECORD"); alt = pa_xstrdup(pa_headerlist_gets(headers, "Audio-Latency")); - if (alt) - pa_atoi(alt, &latency); + if (alt) { + if (pa_atoi(alt, &latency) < 0) + pa_log("Failed to parse audio latency"); + } pa_raop_packet_buffer_reset(c->pbuf, c->seq); |