Fix incorrect logic checking if Transcoding required

This commit is contained in:
Neil Burrows 2020-06-01 17:26:19 +01:00
parent a2d77efeae
commit 9094e47d6c

View File

@ -207,7 +207,7 @@ end function
function directPlaySupported(meta as object) as boolean function directPlaySupported(meta as object) as boolean
devinfo = CreateObject("roDeviceInfo") 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 return false
end if end if
return devinfo.CanDecodeVideo({ Codec: meta.json.MediaStreams[0].codec }).result return devinfo.CanDecodeVideo({ Codec: meta.json.MediaStreams[0].codec }).result