summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2013-03-07 23:07:08 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2013-03-07 23:07:08 -0800
commit8514ee81d181db1642f61edb2991afef6cc08d9b (patch)
tree190d7bb38741c69c7a06db494c4c8682a450f84b
parent502bf25b05b42726d7f1d2fd7feefcbfb6ac4a59 (diff)
parenta59fb7e5fe8f6b5db9a21f20cdc347f2afba49e1 (diff)
downloadandroid_hardware_qcom_media-8514ee81d181db1642f61edb2991afef6cc08d9b.tar.gz
android_hardware_qcom_media-8514ee81d181db1642f61edb2991afef6cc08d9b.tar.bz2
android_hardware_qcom_media-8514ee81d181db1642f61edb2991afef6cc08d9b.zip
Merge "dashplayer: Fix to avoid crash during back to back playback"
-rw-r--r--dashplayer/DashPlayer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/dashplayer/DashPlayer.cpp b/dashplayer/DashPlayer.cpp
index b86b3873..4b04fe3a 100644
--- a/dashplayer/DashPlayer.cpp
+++ b/dashplayer/DashPlayer.cpp
@@ -948,6 +948,10 @@ void DashPlayer::finishFlushIfPossible() {
if ( (mSourceType == kHttpDashSource) &&
(mTextDecoder != NULL) )
{
+ if (mSource != NULL) {
+ ALOGV("finishFlushIfPossible calling mSource->stop");
+ mSource->stop();
+ }
sp<AMessage> codecRequest;
mTextNotify->findMessage("codec-request", &codecRequest);
codecRequest = NULL;
@@ -970,6 +974,7 @@ void DashPlayer::finishReset() {
}
if (mSource != NULL) {
+ ALOGV("finishReset calling mSource->stop");
mSource->stop();
mSource.clear();
}