summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authora0393586 <a0393586@ti.com>2011-04-15 17:50:28 +0530
committerBarry Woodward <b-woodward@ti.com>2011-04-19 13:02:20 -0500
commit3c2108c1c605f0a38ea6f7c54e34847abcc4d93e (patch)
treee66c813b42f823770c86f36a8da666855952963f
parent91661f1470cfe5deadc177841dd375835f17f699 (diff)
downloadbase-3c2108c1c605f0a38ea6f7c54e34847abcc4d93e.tar.gz
Stagefright: Proper reset of dlerror() in asfsniffer wrapper
In SniffASF() function before calling dlopen() we should reset the current state of dlerror return value by calling dlerror(). This will ensure we will not fail initialization due to stray error value from dlerror() later. Verified sanity on AV playback on wmv files. Patch Set #2: Added OMAP_ENHANCEMENT flag Change-Id: Ie0f5dd9b3f191dee30a064ac6a3a11791893878b Signed-off-by:<dnk.mohan@ti.com> Signed-off-by: Barry Woodward <b-woodward@ti.com>
-rwxr-xr-xmedia/libstagefright/ASFExtractor.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/media/libstagefright/ASFExtractor.cpp b/media/libstagefright/ASFExtractor.cpp
index b01abfdc5b95..26aeb0610d57 100755
--- a/media/libstagefright/ASFExtractor.cpp
+++ b/media/libstagefright/ASFExtractor.cpp
@@ -139,6 +139,10 @@ bool SniffASF(const sp<DataSource> &source,
float *confidence,
sp<AMessage> *meta);
+#ifdef OMAP_ENHANCEMENT
+ dlerror();
+#endif
+
pASFHandle = dlopen("/system/lib/libittiam_asfextractor.so", RTLD_LAZY | RTLD_GLOBAL);
if((errstr = dlerror()) != NULL){
LOGE("dlopen() err: %s", errstr);