diff options
author | James Dong <jdong@google.com> | 2012-09-17 14:44:15 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-09-17 14:44:15 -0700 |
commit | 482989a7c92215953f25293c92b3d0fe2e87cb41 (patch) | |
tree | ca3c9b5b8dc18051d001a8c9b172150eabda7306 /media/libmediaplayerservice | |
parent | 628335809726683ce13d49d51ab51ef984933a13 (diff) | |
parent | d71866b18e387ddcff6ff8128866ecae45ec1606 (diff) | |
download | frameworks_av-482989a7c92215953f25293c92b3d0fe2e87cb41.zip frameworks_av-482989a7c92215953f25293c92b3d0fe2e87cb41.tar.gz frameworks_av-482989a7c92215953f25293c92b3d0fe2e87cb41.tar.bz2 |
am 9568b4cd: am 376074ed: Fixed a native crash due to deref of a NULL pointer
* commit '9568b4cdc8d2a7896e9c031f2b6cdf6f18210de1':
Fixed a native crash due to deref of a NULL pointer
Diffstat (limited to 'media/libmediaplayerservice')
-rw-r--r-- | media/libmediaplayerservice/nuplayer/NuPlayer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/media/libmediaplayerservice/nuplayer/NuPlayer.cpp b/media/libmediaplayerservice/nuplayer/NuPlayer.cpp index c09f86f..756e76a 100644 --- a/media/libmediaplayerservice/nuplayer/NuPlayer.cpp +++ b/media/libmediaplayerservice/nuplayer/NuPlayer.cpp @@ -961,7 +961,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) { |