Don't call doSomeWork if we're preparing

This commit is contained in:
Oliver Woodman 2014-08-01 15:53:49 +01:00
parent 2a82ff353b
commit b1992c3848

View File

@ -525,7 +525,7 @@ import java.util.List;
notifyAll(); notifyAll();
} }
} }
if (state != ExoPlayer.STATE_IDLE) { if (state != ExoPlayer.STATE_IDLE && state != ExoPlayer.STATE_PREPARING) {
// The message may have caused something to change that now requires us to do work. // The message may have caused something to change that now requires us to do work.
handler.sendEmptyMessage(MSG_DO_SOME_WORK); handler.sendEmptyMessage(MSG_DO_SOME_WORK);
} }