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

Commit ddfef426 authored by Hangyu Kuang's avatar Hangyu Kuang Committed by Android (Google) Code Review
Browse files

Merge "stagefright: Add warning log in MPEG4Writer." into nyc-dev

parents 4e82dc40 316d08c1
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;
        }