OSDN Git Service

Add a check to track a problem the monkey script has been triggering.
authorMarco Nelissen <marcone@google.com>
Fri, 17 Sep 2010 22:04:01 +0000 (15:04 -0700)
committerMarco Nelissen <marcone@google.com>
Fri, 17 Sep 2010 22:04:01 +0000 (15:04 -0700)
Change-Id: If3896946d993cbab2442e17740f18efd7e753a3b

media/libmedia/mediaplayer.cpp

index f3229c0..c6b2efb 100644 (file)
@@ -590,6 +590,9 @@ void MediaPlayer::notify(int msg, int ext1, int ext2)
         break;
     case MEDIA_PLAYBACK_COMPLETE:
         LOGV("playback complete");
+        if (mCurrentState == MEDIA_PLAYER_IDLE) {
+            LOGE("playback complete in idle state");
+        }
         if (!mLoop) {
             mCurrentState = MEDIA_PLAYER_PLAYBACK_COMPLETE;
         }