summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNaupada Dharmendra Patnaik <npatna@codeaurora.org>2013-02-27 15:32:55 +0530
committerNaupada Dharmendra Patnaik <npatna@codeaurora.org>2013-02-27 15:48:01 +0530
commita59fb7e5fe8f6b5db9a21f20cdc347f2afba49e1 (patch)
tree9bc0c52dc3d8ec3778de09b831b6f9c0ad1ad9c1
parentf1532cd5e69b31b8d4dec59210ad47eeaddef3b6 (diff)
downloadandroid_hardware_qcom_media-a59fb7e5fe8f6b5db9a21f20cdc347f2afba49e1.tar.gz
android_hardware_qcom_media-a59fb7e5fe8f6b5db9a21f20cdc347f2afba49e1.tar.bz2
android_hardware_qcom_media-a59fb7e5fe8f6b5db9a21f20cdc347f2afba49e1.zip
dashplayer: Fix to avoid crash during back to back playback
stop call on source added to avoid crash during back to back playback Change-Id: I5bcbac2ba1c131c4d0e322ecd876a1d1021cba9f CRs-Fixed: 450679
-rw-r--r--dashplayer/DashPlayer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/dashplayer/DashPlayer.cpp b/dashplayer/DashPlayer.cpp
index f5073b1d..47a76857 100644
--- a/dashplayer/DashPlayer.cpp
+++ b/dashplayer/DashPlayer.cpp
@@ -945,6 +945,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;
@@ -967,6 +971,7 @@ void DashPlayer::finishReset() {
}
if (mSource != NULL) {
+ ALOGV("finishReset calling mSource->stop");
mSource->stop();
mSource.clear();
}