diff options
author | Andreas Huber <andih@google.com> | 2011-03-21 11:55:01 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2011-03-21 11:55:01 -0700 |
commit | 5bb357f4ccdb573efbe1476a7f20e82f454b3a93 (patch) | |
tree | f6e40a6046f3356ba932aeaedc96def285aee319 | |
parent | 14a80afa512c4d37b1e0dc4c4fe6281d74fc172e (diff) | |
download | frameworks_base-5bb357f4ccdb573efbe1476a7f20e82f454b3a93.zip frameworks_base-5bb357f4ccdb573efbe1476a7f20e82f454b3a93.tar.gz frameworks_base-5bb357f4ccdb573efbe1476a7f20e82f454b3a93.tar.bz2 |
Fixing the build.
Change-Id: I89daa503029491e6f1a8321f7e45c9439315ad23
-rw-r--r-- | media/jni/android_media_MediaMetadataRetriever.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/media/jni/android_media_MediaMetadataRetriever.cpp b/media/jni/android_media_MediaMetadataRetriever.cpp index fe44009..5d9a3c5 100644 --- a/media/jni/android_media_MediaMetadataRetriever.cpp +++ b/media/jni/android_media_MediaMetadataRetriever.cpp @@ -98,11 +98,11 @@ android_media_MediaMetadataRetriever_setDataSourceAndHeaders( } const char *tmp = env->GetStringUTFChars(path, NULL); - if (!pathStr) { // OutOfMemoryError exception already thrown + if (!tmp) { // OutOfMemoryError exception already thrown return; } - String8 pathStr = tmp; + String8 pathStr(tmp); env->ReleaseStringUTFChars(path, tmp); tmp = NULL; |