Merge "use sqlite 3.6.22 to print and profile the sql statetements"
diff --git a/media/libstagefright/AudioPlayer.cpp b/media/libstagefright/AudioPlayer.cpp
index e7351dc..4926920 100644
--- a/media/libstagefright/AudioPlayer.cpp
+++ b/media/libstagefright/AudioPlayer.cpp
@@ -229,6 +229,8 @@
                     mInputBuffer->release();
                     mInputBuffer = NULL;
                 }
+
+                mSeeking = false;
             }
         }
 
@@ -240,8 +242,6 @@
 
             Mutex::Autolock autoLock(mLock);
 
-            mSeeking = false;
-
             if (err != OK) {
                 mReachedEOS = true;
                 memset((char *)data + size_done, 0, size_remaining);