#2947 - fix app crash in some error case with ExoPlayer.
(It does not address root problems in #2947 though).
This commit is contained in:
parent
5f0a850dd8
commit
9090d697b0
|
@ -991,7 +991,7 @@ public class LocalPSMP extends PlaybackServiceMediaPlayer {
|
|||
|
||||
private final MediaPlayer.OnErrorListener audioErrorListener =
|
||||
(mp, what, extra) -> {
|
||||
if(mp.canFallback()) {
|
||||
if(mp != null && mp.canFallback()) {
|
||||
mp.fallback();
|
||||
return true;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue