summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2011-03-21 11:55:01 -0700
committerAndreas Huber <andih@google.com>2011-03-21 11:55:01 -0700
commit5bb357f4ccdb573efbe1476a7f20e82f454b3a93 (patch)
treef6e40a6046f3356ba932aeaedc96def285aee319
parent14a80afa512c4d37b1e0dc4c4fe6281d74fc172e (diff)
downloadframeworks_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.cpp4
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;