[Android] Playback: Allow video->audio transition if paused
Geoffrey Métais
git at videolan.org
Wed Dec 4 14:29:21 CET 2019
vlc-android | branch: 3.2.x | Geoffrey Métais <geoffrey at videolan.org> | Wed Dec 4 13:16:27 2019 +0000| [85ebd5c69b10b1b9d6c88896e7a33d0a132121b8] | committer: Nicolas Pomepuy
Playback: Allow video->audio transition if paused
Fix #1110
(cherry picked from commit 6e81a5a6554acb06a2c95da502b02f70ee458fd9)
> https://code.videolan.org/videolan/vlc-android/commit/85ebd5c69b10b1b9d6c88896e7a33d0a132121b8
---
vlc-android/src/org/videolan/vlc/PlaybackService.kt | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.kt b/vlc-android/src/org/videolan/vlc/PlaybackService.kt
index 44171e98f..f0b02a927 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.kt
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.kt
@@ -1069,8 +1069,7 @@ class PlaybackService : MediaBrowserServiceCompat(), CoroutineScope, LifecycleOw
@MainThread
fun showWithoutParse(index: Int) {
playlistManager.setVideoTrackEnabled(false)
- val media = playlistManager.getMedia(index)
- if (media == null || !isPlaying) return
+ val media = playlistManager.getMedia(index) ?: return
// Show an URI without interrupting/losing the current stream
if (BuildConfig.DEBUG) Log.v(TAG, "Showing index " + index + " with playing URI " + media.uri)
playlistManager.currentIndex = index
More information about the Android
mailing list