[Android] fix subtitle default track

Sébastien Toque git at videolan.org
Wed Mar 20 20:39:28 CET 2013


vlc-ports/android | branch: master | Sébastien Toque <xilasz at gmail.com> | Wed Mar 20 20:39:10 2013 +0100| [339b4880609ba6900a50e02511329a2df2c89a6d] | committer: Sébastien Toque

fix subtitle default track
-1 if the id of the "disable" subtitle track.
An init value of -1 ignores the default track of the media.

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

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

diff --git a/vlc-android/src/org/videolan/vlc/Media.java b/vlc-android/src/org/videolan/vlc/Media.java
index 1aeb4f9..d032400 100644
--- a/vlc-android/src/org/videolan/vlc/Media.java
+++ b/vlc-android/src/org/videolan/vlc/Media.java
@@ -114,7 +114,7 @@ public class Media implements Comparable<Media> {
     private String mFilename;
     private long mTime = 0;
     private int mAudioTrack = -1;
-    private int mSpuTrack = -1;
+    private int mSpuTrack = -2;
     private long mLength = 0;
     private int mType;
     private int mWidth = 0;



More information about the Android mailing list