Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f9c7aaed authored by Haynes Mathew George's avatar Haynes Mathew George Committed by Andy Hung
Browse files

audio: log error before closing stream

Bug: 31591209
Change-Id: Ie84ac5dad3e1f0987d359d60b5a33bc86ffa4e34
parent ed6a3848
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2076,9 +2076,9 @@ exit:
    pthread_mutex_unlock(&out->lock);

    if (ret != 0) {
        out_on_error(&out->stream.common);
        if (out->pcm)
            ALOGE("%s: error %zu - %s", __func__, ret, pcm_get_error(out->pcm));
        out_on_error(&out->stream.common);
        if (out->usecase != USECASE_AUDIO_PLAYBACK_OFFLOAD)
            usleep(bytes * 1000000 / audio_stream_out_frame_size(stream) /
                   out_get_sample_rate(&out->stream.common));