diff options
author | ByteHamster <info@bytehamster.com> | 2022-01-04 15:28:55 +0100 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2022-01-04 15:28:58 +0100 |
commit | d6381371deb27ebb71e0be7696077df185a46dfd (patch) | |
tree | 37f3047b6910a54fe344db2fc770750a495509fc /core | |
parent | 413df734953dbfbaffac312745f7a467c3ec41ff (diff) | |
download | antennapod-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.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()); |