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

Commit be1480ba authored by James Dong's avatar James Dong Committed by Android (Google) Code Review
Browse files

Merge "Report call status from AudioSource::start() to file writer" into ics-mr1

parents 0d681abd b05e3b5b
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -82,7 +82,11 @@ status_t AMRNBEncoder::start(MetaData *params) {
                &mEncState, &mSidState, false /* dtx_enable */),
             0);

    mSource->start(params);
    status_t err = mSource->start(params);
    if (err != OK) {
        LOGE("AudioSource is not available");
        return err;
    }

    mAnchorTimeUs = 0;
    mNumFramesOutput = 0;
+5 −1
Original line number Diff line number Diff line
@@ -137,8 +137,12 @@ status_t AMRWBEncoder::start(MetaData *params) {
    CHECK_EQ(OK, initCheck());

    mNumFramesOutput = 0;
    mSource->start(params);

    status_t err = mSource->start(params);
    if (err != OK) {
        LOGE("AudioSource is not available");
        return err;
    }
    mStarted = true;

    return OK;