[Android] Remove dead code
Geoffrey Métais
git at videolan.org
Mon Nov 7 16:07:12 CET 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Nov 7 15:57:46 2016 +0100| [81680009f75b47ce68d83781fc7569375d01eed6] | committer: Geoffrey Métais
Remove dead code
> https://code.videolan.org/videolan/vlc-android/commit/81680009f75b47ce68d83781fc7569375d01eed6
---
vlc-android/src/org/videolan/vlc/PlaybackService.java | 19 -------------------
1 file changed, 19 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index b38af38..11f5ea9 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -578,25 +578,6 @@ public class PlaybackService extends Service implements IVLCVout.Callback {
publishState(event.type);
executeUpdateProgress();
mHandler.sendEmptyMessage(SHOW_PROGRESS);
-
- final MediaWrapper mw = mMediaList.getMedia(mCurrentIndex);
- if (mw != null) {
- long length = mMediaPlayer.getLength();
- MediaDatabase dbManager = MediaDatabase.getInstance();
- MediaWrapper m = dbManager.getMedia(mw.getUri());
- /**
- * 1) There is a media to update
- * 2) It has a length of 0
- * (dynamic track loading - most notably the OGG container)
- * 3) We were able to get a length even after parsing
- * (don't want to replace a 0 with a 0)
- */
- if (m != null && m.getLength() == 0 && length > 0) {
- dbManager.updateMedia(mw.getUri(),
- MediaDatabase.INDEX_MEDIA_LENGTH, length);
- }
- }
-
changeAudioFocus(true);
if (!mWakeLock.isHeld())
mWakeLock.acquire();
More information about the Android
mailing list