diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/service/playback/ExoPlayerWrapper.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/playback/ExoPlayerWrapper.java b/core/src/main/java/de/danoeh/antennapod/core/service/playback/ExoPlayerWrapper.java index d4008b3f2..0c64ea2b3 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/service/playback/ExoPlayerWrapper.java +++ b/core/src/main/java/de/danoeh/antennapod/core/service/playback/ExoPlayerWrapper.java @@ -113,6 +113,11 @@ public class ExoPlayerWrapper implements IPlayer { } else { Throwable cause = error.getCause(); if (cause instanceof HttpDataSource.HttpDataSourceException) { + if (cause.getCause() != null) { + cause = cause.getCause(); + } + } + if (cause != null && "Source error".equals(cause.getMessage())) { cause = cause.getCause(); } audioErrorListener.accept(cause != null ? cause.getMessage() : error.getMessage()); |