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

Commit f2575571 authored by aarti jadhav-gaikwad's avatar aarti jadhav-gaikwad Committed by Ronghua Wu
Browse files

stagefright: Do not add silence data for compress offload

Bug: 16683770
Bug: 17035257
Change-Id: I7aef543c47214cc2854d143167b02f1603cf8bea
parent 44a5a202
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1898,7 +1898,8 @@ void MediaPlayerService::AudioOutput::CallbackWrapper(
                me, buffer->raw, buffer->size, me->mCallbackCookie,
                CB_EVENT_FILL_BUFFER);

        if (actualSize == 0 && buffer->size > 0 && me->mNextOutput == NULL) {
        if ((me->mFlags & AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD) == 0 &&
            actualSize == 0 && buffer->size > 0 && me->mNextOutput == NULL) {
            // We've reached EOS but the audio track is not stopped yet,
            // keep playing silence.