save to variable to prevent calling join() twice
This commit is contained in:
parent
9c0228a7e8
commit
0027295dad
|
@ -430,11 +430,12 @@ function GetDirectPlayProfiles() as object
|
|||
|
||||
returnArray = []
|
||||
for each container in supportedCodecs
|
||||
if supportedCodecs[container]["video"].Join(",") <> ""
|
||||
videoCodecString = supportedCodecs[container]["video"].Join(",")
|
||||
if videoCodecString <> ""
|
||||
returnArray.push({
|
||||
"Container": container,
|
||||
"Type": "Video",
|
||||
"VideoCodec": supportedCodecs[container]["video"].Join(","),
|
||||
"VideoCodec": videoCodecString,
|
||||
"AudioCodec": supportedCodecs[container]["audio"].Join(",")
|
||||
})
|
||||
end if
|
||||
|
|
Loading…
Reference in New Issue
Block a user