[Android] PLaylistmanager: Remove silly check
Geoffrey Métais
git at videolan.org
Fri Feb 15 17:00:58 CET 2019
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Feb 15 16:59:41 2019 +0100| [24d9f1dfdb6c94be42f3df08da96e55678aab5f1] | committer: Geoffrey Métais
PLaylistmanager: Remove silly check
> https://code.videolan.org/videolan/vlc-android/commit/24d9f1dfdb6c94be42f3df08da96e55678aab5f1
---
vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt b/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
index 1448b7afe..712c686e2 100644
--- a/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -285,10 +285,7 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
player.switchToVideo = false
if (TextUtils.equals(mw.uri.scheme, "content")) withContext(Dispatchers.IO) { MediaUtils.retrieveMediaTitle(mw) }
- if (mw.hasFlag(MediaWrapper.MEDIA_FORCE_AUDIO) && player.getAudioTracksCount() == 0) {
- determinePrevAndNextIndices(true)
- skipMedia()
- } else if (mw.type != MediaWrapper.TYPE_VIDEO || isVideoPlaying || player.hasRenderer
+ if (mw.type != MediaWrapper.TYPE_VIDEO || isVideoPlaying || player.hasRenderer
|| mw.hasFlag(MediaWrapper.MEDIA_FORCE_AUDIO)) {
val uri = withContext(Dispatchers.IO) { FileUtils.getUri(mw.uri) }
if (uri == null) {
More information about the Android
mailing list