Also catch IllegalArgumentException during setNextMediaPlayer
This commit is contained in:
parent
3ac3efe92c
commit
690bb889ab
@ -834,7 +834,8 @@ public final class PlaybackService extends Service
|
||||
// a link to it
|
||||
mMediaPlayer.setNextMediaPlayer(mPreparedMediaPlayer);
|
||||
}
|
||||
} catch (IOException e) {
|
||||
} catch (IOException | IllegalArgumentException e) {
|
||||
Log.e("VanillaMusic", "Exception while preparing gapless media player: " + e);
|
||||
mMediaPlayer.setNextMediaPlayer(null);
|
||||
mPreparedMediaPlayer.reset();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user