summaryrefslogtreecommitdiffstats
path: root/media/jni/android_media_MediaMetadataRetriever.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2011-04-11 16:50:19 -0700
committerElliott Hughes <enh@google.com>2011-04-11 17:04:01 -0700
commita3804cf77f0edd93f6247a055cdafb856b117eec (patch)
tree795814e56ceddf3773f7f2b47bb7a6b632daa5d5 /media/jni/android_media_MediaMetadataRetriever.cpp
parent4123211637dcc0155091016f0c0987b80e56ab7b (diff)
downloadframeworks_base-a3804cf77f0edd93f6247a055cdafb856b117eec.zip
frameworks_base-a3804cf77f0edd93f6247a055cdafb856b117eec.tar.gz
frameworks_base-a3804cf77f0edd93f6247a055cdafb856b117eec.tar.bz2
You don't need to poke around inside FileDescriptor manually.
We can help you with that. Note also that getParcelFileDescriptorFD did no such thing. All its callers were passing in a regular java.io.FileDescriptor and expecting the int. No ParcelFileDescriptors involved. Change-Id: Idc233626f20c092e719f152562601f406cc1b64a
Diffstat (limited to 'media/jni/android_media_MediaMetadataRetriever.cpp')
-rw-r--r--media/jni/android_media_MediaMetadataRetriever.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/jni/android_media_MediaMetadataRetriever.cpp b/media/jni/android_media_MediaMetadataRetriever.cpp
index a219623..2ba9b3f 100644
--- a/media/jni/android_media_MediaMetadataRetriever.cpp
+++ b/media/jni/android_media_MediaMetadataRetriever.cpp
@@ -241,7 +241,7 @@ static void android_media_MediaMetadataRetriever_setDataSourceFD(JNIEnv *env, jo
jniThrowException(env, "java/lang/IllegalArgumentException", NULL);
return;
}
- int fd = getParcelFileDescriptorFD(env, fileDescriptor);
+ int fd = jniGetFDFromFileDescriptor(env, fileDescriptor);
if (offset < 0 || length < 0 || fd < 0) {
if (offset < 0) {
LOGE("negative offset (%lld)", offset);