diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2013-04-07 12:21:41 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2013-04-07 12:21:41 +0200 |
commit | e5b9b68e289a9d358bbee23c8bf056398e4ad396 (patch) | |
tree | 3478b925360a59149ecf3a63dbdc2f07d06162d1 /src/de | |
parent | 02f3cdfb42ec509ea235bac01877826dcfe9d22a (diff) | |
download | AntennaPod-e5b9b68e289a9d358bbee23c8bf056398e4ad396.zip |
Catch RuntimeException thrown by MediaMetadataRetriever
Diffstat (limited to 'src/de')
-rw-r--r-- | src/de/danoeh/antennapod/util/playback/ExternalMedia.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/de/danoeh/antennapod/util/playback/ExternalMedia.java b/src/de/danoeh/antennapod/util/playback/ExternalMedia.java index 55a37413b..c0a92904b 100644 --- a/src/de/danoeh/antennapod/util/playback/ExternalMedia.java +++ b/src/de/danoeh/antennapod/util/playback/ExternalMedia.java @@ -69,6 +69,11 @@ public class ExternalMedia implements Playable { e.printStackTrace(); throw new PlayableException( "IllegalArgumentException when setting up MediaMetadataReceiver"); + } catch (RuntimeException e) { + // http://code.google.com/p/android/issues/detail?id=39770 + e.printStackTrace(); + throw new PlayableException( + "RuntimeException when setting up MediaMetadataRetriever"); } episodeTitle = mmr .extractMetadata(MediaMetadataRetriever.METADATA_KEY_TITLE); @@ -78,10 +83,10 @@ public class ExternalMedia implements Playable { .extractMetadata(MediaMetadataRetriever.METADATA_KEY_DURATION)); ChapterUtils.loadChaptersFromFileUrl(this); } - + @Override public void loadChapterMarks() { - + } @Override |