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

Commit 4bdda353 authored by Marco Nelissen's avatar Marco Nelissen
Browse files

Only send a format change if the buffer has data

b/11696552

Change-Id: I31aba6e01a7b4d288f4d85d9e2ddec0aac1c2d1f
parent fdd3795c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3413,7 +3413,7 @@ bool ACodec::BaseState::onOMXFillBufferDone(
            sp<AMessage> reply =
                new AMessage(kWhatOutputBufferDrained, mCodec->id());

            if (!mCodec->mSentFormat) {
            if (!mCodec->mSentFormat && rangeLength > 0) {
                mCodec->sendFormatChange(reply);
            }