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

Commit ed6bccd8 authored by Alex Spradlin's avatar Alex Spradlin
Browse files

Unstick AM

Merged-In: Iceeb3851aed0ba9b1c2c50b1a2378df06faa29d6
Change-Id: I448734c09c2b8c84f9be8ac7673783f0fe88e0b5
parents 6a08a929 5c689f5f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -697,7 +697,7 @@ status_t BnMediaPlayer::onTransact(
        }
        case SET_DATA_SOURCE_RTP: {
            CHECK_INTERFACE(IMediaPlayer, data, reply);
            const String8& rtpParams = data.readString8();
            String8 rtpParams = data.readString8();
            reply->writeInt32(setDataSource(rtpParams));
            return NO_ERROR;
        }
+4 −1
Original line number Diff line number Diff line
@@ -180,7 +180,10 @@ enum media_parameter_keys {
    KEY_PARAMETER_PLAYBACK_RATE_PERMILLE = 1300,                // set only

    // Set a Parcel containing the value of a parcelled Java AudioAttribute instance
    KEY_PARAMETER_AUDIO_ATTRIBUTES = 1400                       // set only
    KEY_PARAMETER_AUDIO_ATTRIBUTES = 1400,                       // set only

    // Set a Parcel containing the values of RTP attribute
    KEY_PARAMETER_RTP_ATTRIBUTES = 2000                       // set only
};

// Keep INVOKE_ID_* in sync with MediaPlayer.java.
+1 −1
Original line number Diff line number Diff line
@@ -292,7 +292,7 @@ private:
    Mutex                       mLock;
    Mutex                       mNotifyLock;

    int                         mOutputFormat;
    output_format               mOutputFormat;
};

};  // namespace android
+2 −2
Original line number Diff line number Diff line
@@ -244,7 +244,7 @@ status_t MediaRecorder::setOutputFormat(int of)
        mCurrentState = MEDIA_RECORDER_ERROR;
        return ret;
    }
    mOutputFormat = of;
    mOutputFormat = (output_format)of;
    mCurrentState = MEDIA_RECORDER_DATASOURCE_CONFIGURED;
    return ret;
}
@@ -745,7 +745,7 @@ void MediaRecorder::doCleanUp()
    mIsAudioEncoderSet = false;
    mIsVideoEncoderSet = false;
    mIsOutputFileSet   = false;
    mOutputFormat      = 0;
    mOutputFormat      = OUTPUT_FORMAT_DEFAULT;
}

// Release should be OK in any state
+1 −0
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@ cc_library {
        "android.hardware.media.c2@1.0",
        "android.hardware.media.omx@1.0",
        "libbase",
        "libandroid_net",
        "libaudioclient",
        "libbinder",
        "libcamera_client",
Loading