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

Commit a6e427cc authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Revert "Audio: fix stop issue for compress capture using MPEG4Writer""

parents b669f940 4be0ceaa
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -1841,13 +1841,14 @@ status_t MPEG4Writer::Track::stop() {
    }
    mDone = true;

    ALOGD("%s track source stopping", mIsAudio? "Audio": "Video");
    mSource->stop();
    ALOGD("%s track source stopped", mIsAudio? "Audio": "Video");

    void *dummy;
    pthread_join(mThread, &dummy);
    status_t err = static_cast<status_t>(reinterpret_cast<uintptr_t>(dummy));

    ALOGD("%s track source stopping", mIsAudio? "Audio": "Video");
    err = mSource->stop();
    ALOGD("%s track stopped status:%d", mIsAudio? "Audio": "Video", err);
    if (mOwner->exceedsFileSizeLimit() && mStszTableEntries->count() == 0) {
        ALOGE(" Filesize limit exceeded and zero samples written ");
        return ERROR_END_OF_STREAM;