Commit 59e9ca73 authored by Robert Shih's avatar Robert Shih
Browse files

NuPlayerDecoder: initialize dropAccessUnit to true

`continue` in a do-while skips to the conditional test; initialize
dropAccessUnit to true such that the loop continues during a seamless
format change.

Bug: 32240909
Change-Id: I477820e03a417fe1968450fe783ea7183aeadfd9
parent cf199260
......@@ -754,7 +754,7 @@ bool NuPlayer::Decoder::isStaleReply(const sp<AMessage> &msg) {
status_t NuPlayer::Decoder::fetchInputData(sp<AMessage> &reply) {
sp<ABuffer> accessUnit;
bool dropAccessUnit;
bool dropAccessUnit = true;
do {
status_t err = mSource->dequeueAccessUnit(mIsAudio, &accessUnit);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment