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

Commit 9568b4cd authored by James Dong's avatar James Dong Committed by Android Git Automerger
Browse files

am 376074ed: Fixed a native crash due to deref of a NULL pointer

* commit '376074ed':
  Fixed a native crash due to deref of a NULL pointer
parents 92908745 376074ed
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -963,7 +963,8 @@ sp<AMessage> NuPlayer::Source::getFormat(bool audio) {

status_t NuPlayer::setVideoScalingMode(int32_t mode) {
    mVideoScalingMode = mode;
    if (mNativeWindow != NULL) {
    if (mNativeWindow != NULL
            && mNativeWindow->getNativeWindow() != NULL) {
        status_t ret = native_window_set_scaling_mode(
                mNativeWindow->getNativeWindow().get(), mVideoScalingMode);
        if (ret != OK) {