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

Commit b0918fb1 authored by Haynes Mathew George's avatar Haynes Mathew George Committed by android-build-merger
Browse files

audio: log error before closing stream

am: f9c7aaed

Change-Id: I87cac0f20b87d459d1701248677326ef4811a4b9
parents 955dee58 f9c7aaed
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));