[Android] Abort media loading on error

Geoffrey Métais git at videolan.org
Tue Mar 17 14:15:01 CET 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Mar 17 14:12:01 2015 +0100| [fc971b2707e00da87468fbc55bc0d5dd0484d836] | committer: Geoffrey Métais

Abort media loading on error

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

 vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index 32a2f32..98b9f11 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -2464,6 +2464,7 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
                     } catch (Exception e) {
                         Log.e(TAG, "Couldn't download file from mail URI");
                         encounteredError();
+                        return;
                     } finally {
                         Util.close(is);
                         Util.close(os);
@@ -2510,6 +2511,7 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
             } else {
                 Log.e(TAG, "Couldn't understand the intent");
                 encounteredError();
+                return;
             }
 
             // Try to get the position



More information about the Android mailing list