mm-dash: INFO_DISCONTINUITY should only be set in IsFlushingState()State

INFO_DISCONTINUITY should only be set in IsFlushingState()State

Change-Id: I58eeb08b691f8628ee132fd8507e1c0333a4f3e5
diff --git a/dashplayer/DashPlayer.cpp b/dashplayer/DashPlayer.cpp
index 7b715a6..6c1950a 100644
--- a/dashplayer/DashPlayer.cpp
+++ b/dashplayer/DashPlayer.cpp
@@ -1576,8 +1576,8 @@
     {
         Mutex::Autolock autoLock(mLock);
 
-        if (reply != NULL && (((track == kAudio) && mFlushingAudio != NONE)
-            || ((track == kVideo) && mFlushingVideo != NONE)
+        if (reply != NULL && (((track == kAudio) && IsFlushingState(mFlushingAudio))
+            || ((track == kVideo) && IsFlushingState(mFlushingVideo))
             || mSource == NULL)) {
             reply->setInt32("err", INFO_DISCONTINUITY);
             reply->post();
diff --git a/dashplayer/DashPlayerDecoder.cpp b/dashplayer/DashPlayerDecoder.cpp
index b26dcc9..3e7b6c0 100644
--- a/dashplayer/DashPlayerDecoder.cpp
+++ b/dashplayer/DashPlayerDecoder.cpp
@@ -193,6 +193,7 @@
  */
 void DashPlayer::Decoder::handleError(int32_t err)
 {
+    DPD_MSG_HIGH("[%s] handleError : %d", mComponentName.c_str() , err);
     sp<AMessage> notify = mNotify->dup();
     notify->setInt32("what", kWhatError);
     notify->setInt32("err", err);