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

Commit a77c496d authored by Marco Nelissen's avatar Marco Nelissen
Browse files

Return error code if setting scaling mode fails

The return code from native_window_set_scaling_mode() was ignored.
Looking at the code review comments that introduced this code, it
seems like the intention was to return the error code in that case.

Change-Id: I9592cc378f0a0b960d37178aa0525fc17e8734ba
parent 3d6aa435
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2511,6 +2511,7 @@ status_t AwesomePlayer::setVideoScalingMode_l(int32_t mode) {
        if (err != OK) {
            ALOGW("Failed to set scaling mode: %d", err);
        }
        return err;
    }
    return OK;
}