Revert "Allow invoke in all the player states except idle and error."

This reverts commit 88f3b81d065d4bec6f69a25eda99158e254f55b1.
diff --git a/media/libmedia/mediaplayer.cpp b/media/libmedia/mediaplayer.cpp
index 9fc06cd..f623295b 100644
--- a/media/libmedia/mediaplayer.cpp
+++ b/media/libmedia/mediaplayer.cpp
@@ -159,10 +159,8 @@
 status_t MediaPlayer::invoke(const Parcel& request, Parcel *reply)
 {
     Mutex::Autolock _l(mLock);
-    const bool hasBeenInitialized =
-            (mCurrentState != MEDIA_PLAYER_STATE_ERROR) &&
-            ((mCurrentState & MEDIA_PLAYER_IDLE) != MEDIA_PLAYER_STATE_IDLE);
-    if ((mPlayer != NULL) && hasBeenInitialized) {
+    if ((mPlayer != NULL) && ( mCurrentState & MEDIA_PLAYER_INITIALIZED ))
+    {
          LOGV("invoke %d", request.dataSize());
          return  mPlayer->invoke(request, reply);
     }