diff options
author | Mathias Agopian <mathias@google.com> | 2010-04-12 16:22:15 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2010-04-12 16:29:36 -0700 |
commit | 2e5299988b5f5f9165a76938a66d37e46dd48d6b (patch) | |
tree | d7212db7df16d22aaf7d5f1ce43f5706ff58ec30 /media/libmedia/IOMX.cpp | |
parent | 47acf12ffef0a5db470406b7db788adcc6240786 (diff) | |
download | frameworks_av-2e5299988b5f5f9165a76938a66d37e46dd48d6b.zip frameworks_av-2e5299988b5f5f9165a76938a66d37e46dd48d6b.tar.gz frameworks_av-2e5299988b5f5f9165a76938a66d37e46dd48d6b.tar.bz2 |
don't hardcode "mSurface" throughout our source code
this is used in a few places to get access to the android.view.Surface
native surface. use a macro instead. Also rename the field to mNativeSurface.
Change-Id: I1c6dea14abd6b8b1392c7f97b304115999355094
Diffstat (limited to 'media/libmedia/IOMX.cpp')
-rw-r--r-- | media/libmedia/IOMX.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libmedia/IOMX.cpp b/media/libmedia/IOMX.cpp index 01b6737..f3804b8 100644 --- a/media/libmedia/IOMX.cpp +++ b/media/libmedia/IOMX.cpp @@ -57,7 +57,7 @@ sp<IOMXRenderer> IOMX::createRendererFromJavaSurface( return NULL; } - jfieldID surfaceID = env->GetFieldID(surfaceClass, "mSurface", "I"); + jfieldID surfaceID = env->GetFieldID(surfaceClass, ANDROID_VIEW_SURFACE_JNI_ID, "I"); if (surfaceID == NULL) { LOGE("Can't find Surface.mSurface"); return NULL; |