[Android] AudioUtil: fix case with no existing cover
Jean-Baptiste Kempf
git at videolan.org
Mon Oct 15 16:19:07 CEST 2012
vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Oct 15 16:18:33 2012 +0200| [dc64048c86c672db36dce257684b93371e34f83d] | committer: Jean-Baptiste Kempf
AudioUtil: fix case with no existing cover
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=dc64048c86c672db36dce257684b93371e34f83d
---
vlc-android/src/org/videolan/vlc/gui/audio/AudioUtil.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioUtil.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioUtil.java
index f123cc1..09b5184 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioUtil.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioUtil.java
@@ -176,6 +176,8 @@ public class AudioUtil {
if (cacheFile != null && cacheFile.exists()) {
if (cacheFile.length() > 0)
coverPath = cachePath;
+ else
+ return null;
}
if (coverPath == null)
More information about the Android
mailing list