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

Commit a57cff4e authored by Gopalakrishnan Nallasamy's avatar Gopalakrishnan Nallasamy
Browse files

MediaRecorder.h:correct MEDIA_RECORDER_ERROR enum

MEDIA_RECORDER_ERROR state had an enum value 0 which would not work with some of the existing
code using bitwise operators (mask). Hence, set a new value for this state.

Bug: 120389907

Test: cts-tradefed run cts-dev --module CtsMediaTestCases --compatibility:module-arg
      CtsMediaTestCases:include-annotation:android.platform.test.annotations.RequiresDevice

Change-Id: I06f35b7438ff12050dd34bc64fbdca3a5c07b47a
parent f25675d3
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -115,9 +115,6 @@ enum video_encoder {
 * The state machine of the media_recorder.
 */
enum media_recorder_states {
    // Error state.
    MEDIA_RECORDER_ERROR                 =      0,

    // Recorder was just created.
    MEDIA_RECORDER_IDLE                  = 1 << 0,

@@ -132,6 +129,9 @@ enum media_recorder_states {

    // Recording is in progress.
    MEDIA_RECORDER_RECORDING             = 1 << 4,

    // Error state.
    MEDIA_RECORDER_ERROR                 = 1 << 5,
};

// The "msg" code passed to the listener in notify.