[Android] Set correct default value to openedPosition

Geoffrey Métais git at videolan.org
Thu Apr 23 15:33:35 CEST 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Apr 23 15:31:04 2015 +0200| [cdb7d235ba92d8e868ec92408d35857256ab4f5b] | committer: Geoffrey Métais

Set correct default value to openedPosition

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

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

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 d546a78..980e001 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -2706,7 +2706,7 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
             if (getIntent().hasExtra(PLAY_EXTRA_SUBTITLES_LOCATION))
                 mSubtitleSelectedFiles.add(getIntent().getExtras().getString(PLAY_EXTRA_SUBTITLES_LOCATION));
             mAskResume &= !fromStart;
-            openedPosition = getIntent().getExtras().getInt(PLAY_EXTRA_OPENED_POSITION);
+            openedPosition = getIntent().getExtras().getInt(PLAY_EXTRA_OPENED_POSITION, -1);
         }
 
         /* WARNING: hack to avoid a crash in mediacodec on KitKat.



More information about the Android mailing list