Fix incorrect logic checking if Transcoding required
This commit is contained in:
parent
a2d77efeae
commit
9094e47d6c
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user