summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2022-01-04 15:28:55 +0100
committerByteHamster <info@bytehamster.com>2022-01-04 15:28:58 +0100
commitd6381371deb27ebb71e0be7696077df185a46dfd (patch)
tree37f3047b6910a54fe344db2fc770750a495509fc /core
parent413df734953dbfbaffac312745f7a467c3ec41ff (diff)
downloadantennapod-d6381371deb27ebb71e0be7696077df185a46dfd.zip
Further unpack exoplayer error messages
Diffstat (limited to 'core')
-rw-r--r--core/src/main/java/de/danoeh/antennapod/core/service/playback/ExoPlayerWrapper.java5
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());