A bit of scan-build fixup

This commit is contained in:
ejurgensen
2019-03-22 22:15:13 +01:00
parent 4fb45e84f2
commit 95deef9c06
3 changed files with 7 additions and 3 deletions

View File

@@ -376,7 +376,7 @@ device_quality_set(struct alsa_session *as, struct media_quality *quality, char
ret = snd_pcm_hw_params(as->hdl, hw_params);
if (ret < 0)
{
DPRINTF(E_LOG, L_LAUDIO, "Could not set hw params: %s\n", snd_strerror(ret));
*errmsg = safe_asprintf("Could not set hw params: %s\n", snd_strerror(ret));
goto free_params;
}

View File

@@ -1930,7 +1930,9 @@ session_teardown_cb(struct evrtsp_request *req, void *arg)
rs->reqs_in_flight--;
if (!req || req->response_code != RTSP_OK)
if (!req)
DPRINTF(E_LOG, L_RAOP, "TEARDOWN request failed in session shutdown\n");
else if (req->response_code != RTSP_OK)
DPRINTF(E_LOG, L_RAOP, "TEARDOWN request failed in session shutdown: %d %s\n", req->response_code, req->response_code_line);
rs->state = RAOP_STATE_STOPPED;