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

Commit 89dc2fe6 authored by Wei Jia's avatar Wei Jia
Browse files

GenericSource: still feed audio decoder when paused.

Test: audio decoder stops polling source
Bug: 63412809
Change-Id: I53c98920ea850defae88b2e12be6b05d6d90c32c
parent f34e3f27
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -847,10 +847,6 @@ sp<MetaData> NuPlayer::GenericSource::doGetFormatMeta(bool audio) const {

status_t NuPlayer::GenericSource::dequeueAccessUnit(
        bool audio, sp<ABuffer> *accessUnit) {
    if (audio && !mStarted) {
        return -EWOULDBLOCK;
    }

    // If has gone through stop/releaseDrm sequence, we no longer send down any buffer b/c
    // the codec's crypto object has gone away (b/37960096).
    // Note: This will be unnecessary when stop() changes behavior and releases codec (b/35248283).