Also catch IllegalArgumentException during setNextMediaPlayer
This commit is contained in:
1 parent
3ac3efe92c
commit
690bb889ab
1 file changed
+2
-1
@@ -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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user