summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Kondik <shade@chemlab.org>2012-07-17 10:08:41 +0400
committerGerrit Code Review <gerrit@review.cyanogenmod.com>2012-07-17 10:08:41 +0400
commita2ef7818dadde3b4459a7eaf3ee2f6d83ccd8a96 (patch)
treed6eb0784705c671cc4cb9bbfe9ec4fba459524e9
parent529fcdfdc328aafdda401b2d7de9edbb16ae699c (diff)
parent123baf6c964f9f2cd8f347ff3302009b1346eaaa (diff)
downloadframeworks_base-a2ef7818dadde3b4459a7eaf3ee2f6d83ccd8a96.zip
frameworks_base-a2ef7818dadde3b4459a7eaf3ee2f6d83ccd8a96.tar.gz
frameworks_base-a2ef7818dadde3b4459a7eaf3ee2f6d83ccd8a96.tar.bz2
Merge "libstagefright: Use proper mangled name for color convert API" into ics
-rw-r--r--media/libstagefright/colorconversion/ColorConverter.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/media/libstagefright/colorconversion/ColorConverter.cpp b/media/libstagefright/colorconversion/ColorConverter.cpp
index 0ef85e6..5bda1f6 100644
--- a/media/libstagefright/colorconversion/ColorConverter.cpp
+++ b/media/libstagefright/colorconversion/ColorConverter.cpp
@@ -136,9 +136,21 @@ status_t ColorConverter::convert(
case QOMX_COLOR_FormatYUV420PackedSemiPlanar64x32Tile2m8ka:
{
void * lib = dlopen("libmm-color-convertor.so", RTLD_NOW);
+
+ if (!lib) {
+ LOGE("dlopen for libmm-color-convertor failed with errno %d", errno);
+ return ERROR_UNSUPPORTED;
+ }
+
+
typedef int (*convertFn)(ColorConvertParams src, ColorConvertParams dst, uint8_t *adjustedClip);
- convertFn convertNV12Tile = (convertFn)dlsym(lib, "_Z7convertN7android18ColorConvertParamsES0_Ph");
+ convertFn convertNV12Tile = (convertFn)dlsym(lib, "_ZN7android7convertENS_18ColorConvertParamsES0_Ph");
+ if (!convertNV12Tile) {
+ dlclose(lib);
+ LOGE("dlsym on libmm-color-convertor failed with errno %d", errno);
+ return ERROR_UNSUPPORTED;
+ }
struct ColorConvertParams srcTemp;
srcTemp.width = srcWidth;