Fixed PlaybackService crash when seeking in INITIALIZING or PREPARING

state
This commit is contained in:
daniel oeh 2013-03-07 18:57:39 +01:00
parent 98dec67b72
commit b45bd0124c
1 changed files with 3 additions and 1 deletions

View File

@ -1005,7 +1005,9 @@ public class PlaybackService extends Service {
public void seek(int i) {
saveCurrentPosition();
if (status == PlayerStatus.INITIALIZED) {
if (status == PlayerStatus.INITIALIZED
|| status == PlayerStatus.INITIALIZING
|| status == PlayerStatus.PREPARING) {
media.setPosition(i);
setStartWhenPrepared(true);
prepare();