Also catch IllegalArgumentException during setNextMediaPlayer

This commit is contained in:
Adrian Ulrich 2020-02-22 10:01:32 +01:00
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();
}