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

Commit 316d08c1 authored by Hangyu Kuang's avatar Hangyu Kuang
Browse files

stagefright: Add warning log in MPEG4Writer.

This will greatly help debug the problem when MPEG4Writer exit silently.

Bug: 26525150
Change-Id: Id1e356277fdbbf009d5020b29117a5472a7e0ae4
parent ecc8bbbf
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2404,10 +2404,14 @@ status_t MPEG4Writer::Track::threadEntry() {
        updateTrackSizeEstimate();

        if (mOwner->exceedsFileSizeLimit()) {
            ALOGW("Recorded file size exceeds limit %" PRId64 "bytes",
                    mOwner->mMaxFileSizeLimitBytes);
            mOwner->notify(MEDIA_RECORDER_EVENT_INFO, MEDIA_RECORDER_INFO_MAX_FILESIZE_REACHED, 0);
            break;
        }
        if (mOwner->exceedsFileDurationLimit()) {
            ALOGW("Recorded file duration exceeds limit %" PRId64 "microseconds",
                    mOwner->mMaxFileDurationLimitUs);
            mOwner->notify(MEDIA_RECORDER_EVENT_INFO, MEDIA_RECORDER_INFO_MAX_DURATION_REACHED, 0);
            break;
        }