summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/ACodec.cpp
diff options
context:
space:
mode:
authorKeith Mok <kmok@cyngn.com>2015-12-01 14:25:45 -0800
committerKeith Mok <kmok@cyngn.com>2015-12-01 14:25:45 -0800
commitb6cc3eb5672abecbe257e82554cf3c7df6c6db91 (patch)
treef73f2a25a81a78369959b0f60b0032faa35da9ae /media/libstagefright/ACodec.cpp
parent1de1d15673020bc0bfb72dbb8bb95a4ac199acc8 (diff)
downloadframeworks_av-b6cc3eb5672abecbe257e82554cf3c7df6c6db91.zip
frameworks_av-b6cc3eb5672abecbe257e82554cf3c7df6c6db91.tar.gz
frameworks_av-b6cc3eb5672abecbe257e82554cf3c7df6c6db91.tar.bz2
stagefright: Fix fallback mechanism to SW decoder
Fallback mediaserver to SW decoder breaks with commit eeb8a90192cee627890a74f75a0c64145fbc34f4 Since the err parameters is overrided in a local loop. And even an alternative decoder is configureCodec sucessfully, the outer loop err parameters is still != OK and return false. Change-Id: Id5a9e570e5f55f28a80d7cd25a2a14d59442f3e2
Diffstat (limited to 'media/libstagefright/ACodec.cpp')
-rw-r--r--media/libstagefright/ACodec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libstagefright/ACodec.cpp b/media/libstagefright/ACodec.cpp
index 54c648c..b87423f 100644
--- a/media/libstagefright/ACodec.cpp
+++ b/media/libstagefright/ACodec.cpp
@@ -5807,7 +5807,7 @@ bool ACodec::LoadedState::onConfigureComponent(
0, // flags
&matchingCodecs);
- status_t err = mCodec->mOMX->freeNode(mCodec->mNode);
+ err = mCodec->mOMX->freeNode(mCodec->mNode);
if (err != OK) {
ALOGE("Failed to freeNode");