From 9094e47d6c802cd72fb0ac43562d29221e4cb354 Mon Sep 17 00:00:00 2001 From: Neil Burrows Date: Mon, 1 Jun 2020 17:26:19 +0100 Subject: [PATCH] Fix incorrect logic checking if Transcoding required --- source/VideoPlayer.brs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/VideoPlayer.brs b/source/VideoPlayer.brs index 9c04f02c..30855fc9 100644 --- a/source/VideoPlayer.brs +++ b/source/VideoPlayer.brs @@ -207,7 +207,7 @@ end function function directPlaySupported(meta as object) as boolean devinfo = CreateObject("roDeviceInfo") - if meta.json.MediaSources[0] <> invalid or meta.json.MediaSources[0].SupportsDirectPlay = false then + if meta.json.MediaSources[0] <> invalid and meta.json.MediaSources[0].SupportsDirectPlay = false then return false end if return devinfo.CanDecodeVideo({ Codec: meta.json.MediaStreams[0].codec }).result