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

Commit 4cca134f authored by Wonsik Kim's avatar Wonsik Kim
Browse files

stagefright: request IDR on MediaRecorder.resume

Bug: 27658238
Change-Id: I7c7150fcbe980fadf65821028bb99144774dcb69
parent 2c96c0e3
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -712,6 +712,9 @@ status_t MediaCodecSource::onStart(MetaData *params) {

    if (mStarted) {
        ALOGI("MediaCodecSource (%s) resuming", mIsVideo ? "video" : "audio");
        if (mIsVideo) {
            mEncoder->requestIDRFrame();
        }
        if (mFlags & FLAG_USE_SURFACE_INPUT) {
            resume();
        } else {