From 5bb357f4ccdb573efbe1476a7f20e82f454b3a93 Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Mon, 21 Mar 2011 11:55:01 -0700 Subject: Fixing the build. Change-Id: I89daa503029491e6f1a8321f7e45c9439315ad23 --- media/jni/android_media_MediaMetadataRetriever.cpp | 4 ++-- 1 file 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; -- cgit v1.1