dashplayer: Fix to avoid crash during back to back playback
stop call on source added to avoid crash during back to
playback
Change-Id: Ia1b753517094d9fd4e9271079c4489bf4fd6fed3
CRs-Fixed: 450679
diff --git a/dashplayer/DashPlayer.cpp b/dashplayer/DashPlayer.cpp
old mode 100755
new mode 100644
index 67b3569..1c065eb
--- a/dashplayer/DashPlayer.cpp
+++ b/dashplayer/DashPlayer.cpp
@@ -1016,6 +1016,10 @@
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;
@@ -1038,6 +1042,7 @@
}
if (mSource != NULL) {
+ ALOGV("finishReset calling mSource->stop");
mSource->stop();
mSource.clear();
}