diff options
author | Andreas Huber <andih@google.com> | 2012-02-24 13:42:47 -0800 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2012-02-24 13:42:47 -0800 |
commit | bf6c85a013fb14960bac147c1ffd0a02a8d5f148 (patch) | |
tree | 49bbbf00b90fb32b8cba53946344a5ba9752fde3 /cmds/stagefright/codec.cpp | |
parent | 54263bcfa6e9ad2fcb3e89617240f4ec0b3a2f99 (diff) | |
download | frameworks_av-bf6c85a013fb14960bac147c1ffd0a02a8d5f148.zip frameworks_av-bf6c85a013fb14960bac147c1ffd0a02a8d5f148.tar.gz frameworks_av-bf6c85a013fb14960bac147c1ffd0a02a8d5f148.tar.bz2 |
Fix two more locations that use the old setObject("buffer", ...) paradigm
that I'd previously missed.
Change-Id: Ifbdbfb94d1bc1cbe8c0a403fed05ce99fca8397b
Diffstat (limited to 'cmds/stagefright/codec.cpp')
-rw-r--r-- | cmds/stagefright/codec.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cmds/stagefright/codec.cpp b/cmds/stagefright/codec.cpp index ad246d2..1b01bd6 100644 --- a/cmds/stagefright/codec.cpp +++ b/cmds/stagefright/codec.cpp @@ -107,9 +107,8 @@ static int decode( CHECK_EQ(err, (status_t)OK); size_t j = 0; - sp<RefBase> obj; - while (format->findObject(StringPrintf("csd-%d", j).c_str(), &obj)) { - sp<ABuffer> buffer = static_cast<ABuffer *>(obj.get()); + sp<ABuffer> buffer; + while (format->findBuffer(StringPrintf("csd-%d", j).c_str(), &buffer)) { state->mCSD.push_back(buffer); ++j; |