Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert committed Sep 25, 2023
1 parent d4d2486 commit 856df76
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/utils/deviceCapabilities.brs
Original file line number Diff line number Diff line change
Expand Up @@ -798,8 +798,8 @@ function getDeviceProfile() as object
end if

' respect user policy in regards to transcoding permission
enableVideoTranscoding = Lcase(m.global.session.user.policy.EnableVideoPlaybackTranscoding)
enableAudioTranscoding = Lcase(m.global.session.user.policy.EnableAudioPlaybackTranscoding)
enableVideoTranscoding = m.global.session.user.policy.EnableVideoPlaybackTranscoding
enableAudioTranscoding = m.global.session.user.policy.EnableAudioPlaybackTranscoding

if isValid(enableVideoTranscoding) and isValid(enableAudioTranscoding)
if not enableVideoTranscoding and not enableAudioTranscoding
Expand All @@ -809,7 +809,7 @@ function getDeviceProfile() as object
' no video transcoding allowed
newProfile = []
for i = 0 to deviceProfile.TranscodingProfiles.count() - 1
if deviceProfile.TranscodingProfiles[i].Type <> "video"
if Lcase(deviceProfile.TranscodingProfiles[i].Type) <> "video"
newProfile.push(deviceProfile.TranscodingProfiles[i])
end if
end for
Expand All @@ -818,7 +818,7 @@ function getDeviceProfile() as object
' no audio transcoding allowed
newProfile = []
for i = 0 to deviceProfile.TranscodingProfiles.count() - 1
if deviceProfile.TranscodingProfiles[i].Type <> "audio"
if Lcase(deviceProfile.TranscodingProfiles[i].Type) <> "audio"
newProfile.push(deviceProfile.TranscodingProfiles[i])
end if
end for
Expand Down

0 comments on commit 856df76

Please sign in to comment.