[Android] MediaLibrary: add an extra check to avoid a crash

Jean-Baptiste Kempf git at videolan.org
Sat Nov 10 23:23:40 CET 2012


vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Nov 10 23:23:24 2012 +0100| [236304f9bb4da310b76201d8017a46a74bc69b98] | committer: Jean-Baptiste Kempf

MediaLibrary: add an extra check to avoid a crash

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=236304f9bb4da310b76201d8017a46a74bc69b98
---

 vlc-android/src/org/videolan/vlc/MediaLibrary.java |    1 +
 1 file changed, 1 insertion(+)

diff --git a/vlc-android/src/org/videolan/vlc/MediaLibrary.java b/vlc-android/src/org/videolan/vlc/MediaLibrary.java
index 2834d8a..814cf28 100644
--- a/vlc-android/src/org/videolan/vlc/MediaLibrary.java
+++ b/vlc-android/src/org/videolan/vlc/MediaLibrary.java
@@ -88,6 +88,7 @@ public class MediaLibrary {
 
     public boolean isWorking() {
         if (mLoadingThread != null &&
+            mLoadingThread.isAlive() &&
             mLoadingThread.getState() != State.TERMINATED &&
             mLoadingThread.getState() != State.NEW)
             return true;



More information about the Android mailing list