Skip to content
Snippets Groups Projects
Commit 0299e934 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Don't apply switchToVideo if a renderer is set

parent 7a47000e
No related branches found
No related tags found
No related merge requests found
......@@ -172,7 +172,7 @@ class PlaylistModel : ScopedModel(), PlaybackService.Callback by EmptyPBSCallbac
fun switchToVideo() : Boolean {
service?.apply {
if (PlaylistManager.hasMedia() && !isVideoPlaying) {
if (PlaylistManager.hasMedia() && !isVideoPlaying && !hasRenderer()) {
currentMediaWrapper?.run {
if (!hasFlag(MediaWrapper.MEDIA_FORCE_AUDIO) && canSwitchToVideo()) {
switchToVideo()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment