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

Commit 6d6c21b8 authored by Wonsik Kim's avatar Wonsik Kim
Browse files

stagefright: fix MediaCodecSource.pause() behavior

Don't signal EOS when the source is simply paused.

Bug: 27290834
Change-Id: Id8f0697a3761ae96bfa617fceb1c54558ab82090
parent 9322ba85
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -286,6 +286,7 @@ void MediaCodecSource::Puller::onMessageReceived(const sp<AMessage> &msg) {
                }
                if (queue->mPulling && err == OK) {
                    msg->post(); // if simply paused, keep pulling source
                    break;
                } else if (err == ERROR_END_OF_STREAM) {
                    ALOGV("stream ended, mbuf %p", mbuf);
                } else if (err != OK) {