[Android] Video Player: Remove useless code

Geoffrey Métais git at videolan.org
Wed Jan 30 15:12:10 CET 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Jan 30 14:31:27 2019 +0100| [ed8b937ab352f6308c6d4689ee512af7773320cc] | committer: Geoffrey Métais

Video Player: Remove useless code

> https://code.videolan.org/videolan/vlc-android/commit/ed8b937ab352f6308c6d4689ee512af7773320cc
---

 vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 4 ----
 1 file changed, 4 deletions(-)

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 06c1f2e2e..f2b954fde 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1466,10 +1466,6 @@ public class VideoPlayerActivity extends AppCompatActivity implements IPlaybackS
                                 int spuTrack = (int) media.getMetaLong(MediaWrapper.META_SUBTITLE_TRACK);
                                 if (spuTrack != 0 || mCurrentSpuTrack != -2)
                                     mService.setSpuTrack(media.getId() == 0L ? mCurrentSpuTrack : spuTrack);
-                                else if (mService.getSpuTracksCount() == 2){
-                                    final MediaPlayer.TrackDescription[] tracks = mService.getSpuTracks();
-                                    if (tracks != null) setSpuTrack(tracks[1].id);
-                                }
                             }
                         });
                     }



More information about the Android mailing list