diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2013-03-07 23:07:08 -0800 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2013-03-07 23:07:08 -0800 |
| commit | 8514ee81d181db1642f61edb2991afef6cc08d9b (patch) | |
| tree | 190d7bb38741c69c7a06db494c4c8682a450f84b | |
| parent | 502bf25b05b42726d7f1d2fd7feefcbfb6ac4a59 (diff) | |
| parent | a59fb7e5fe8f6b5db9a21f20cdc347f2afba49e1 (diff) | |
| download | android_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.cpp | 5 |
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(); } |
