diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2022-01-04 16:27:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-04 16:27:45 +0100 |
commit | e8f97c28b030382b1883013c2811732dfc2dfe05 (patch) | |
tree | 837c4069af532be82006f86a2de08ed301deaaa6 /core/src/main | |
parent | 814cd0f88ddee858c89f692a4fd6d03627012919 (diff) | |
parent | d6381371deb27ebb71e0be7696077df185a46dfd (diff) | |
download | antennapod-e8f97c28b030382b1883013c2811732dfc2dfe05.zip |
Merge pull request #5637 from ByteHamster/unpack-exoplayer-message
Further unpack exoplayer error messages
Diffstat (limited to 'core/src/main')
-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()); |