diff options
author | Andreas Huber <andih@google.com> | 2011-09-20 15:39:58 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2012-03-22 13:18:08 -0700 |
commit | 8686938aa51a8c0005120f242cb187c25fe7bcb2 (patch) | |
tree | 7627e6c766af410bf88aa180d53b549834934651 /cmds | |
parent | af0c843672322af3e7af8d684fc3375ef9291843 (diff) | |
download | frameworks_base-8686938aa51a8c0005120f242cb187c25fe7bcb2.zip frameworks_base-8686938aa51a8c0005120f242cb187c25fe7bcb2.tar.gz frameworks_base-8686938aa51a8c0005120f242cb187c25fe7bcb2.tar.bz2 |
Use NuPlayer for media playback everywhere
if media.stagefright.use-nuplayer is set to true.
Change-Id: Ibb217e7d7d5195b7feeea557554fe78e1585744c
Diffstat (limited to 'cmds')
-rw-r--r-- | cmds/stagefright/sf2.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cmds/stagefright/sf2.cpp b/cmds/stagefright/sf2.cpp index e47cdc0..64df5d1 100644 --- a/cmds/stagefright/sf2.cpp +++ b/cmds/stagefright/sf2.cpp @@ -176,8 +176,9 @@ protected: } onDrainThisBuffer(msg); - } else if (what == ACodec::kWhatEOS) { - printf("$\n"); + } else if (what == ACodec::kWhatEOS + || what == ACodec::kWhatError) { + printf((what == ACodec::kWhatEOS) ? "$\n" : "E\n"); int64_t delayUs = ALooper::GetNowUs() - mStartTimeUs; @@ -412,7 +413,8 @@ private: sp<AMessage> reply; CHECK(msg->findMessage("reply", &reply)); - if (mSeekState == SEEK_FLUSHING) { + if (mSource == NULL || mSeekState == SEEK_FLUSHING) { + reply->setInt32("err", ERROR_END_OF_STREAM); reply->post(); return; } |