Merge pull request #3252 from YouKnowBlom/fix-safari-hls

Fix incorrect HLS master playlist fields
This commit is contained in:
Bond-009 2020-06-05 21:09:52 +02:00 committed by GitHub
commit 5e056beaae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -872,9 +872,8 @@ namespace MediaBrowser.Api.Playback.Hls
if (framerate.HasValue)
{
builder.Append(",FRAME-RATE=\"")
.Append(framerate.Value)
.Append('"');
builder.Append(",FRAME-RATE=")
.Append(framerate.Value);
}
}
@ -888,11 +887,10 @@ namespace MediaBrowser.Api.Playback.Hls
{
if (state.OutputWidth.HasValue && state.OutputHeight.HasValue)
{
builder.Append(",RESOLUTION=\"")
builder.Append(",RESOLUTION=")
.Append(state.OutputWidth.GetValueOrDefault())
.Append('x')
.Append(state.OutputHeight.GetValueOrDefault())
.Append('"');
.Append(state.OutputHeight.GetValueOrDefault());
}
}