Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df2d3cdc authored by Nicolas Catania's avatar Nicolas Catania
Browse files

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

This reverts commit 88f3b81d.
parent 2e401836
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -159,10 +159,8 @@ status_t MediaPlayer::setDataSource(int fd, int64_t offset, int64_t length)
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);
    }