Merge pull request #3252 from YouKnowBlom/fix-safari-hls
Fix incorrect HLS master playlist fields
This commit is contained in:
commit
5e056beaae
|
@ -872,9 +872,8 @@ namespace MediaBrowser.Api.Playback.Hls
|
||||||
|
|
||||||
if (framerate.HasValue)
|
if (framerate.HasValue)
|
||||||
{
|
{
|
||||||
builder.Append(",FRAME-RATE=\"")
|
builder.Append(",FRAME-RATE=")
|
||||||
.Append(framerate.Value)
|
.Append(framerate.Value);
|
||||||
.Append('"');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -888,11 +887,10 @@ namespace MediaBrowser.Api.Playback.Hls
|
||||||
{
|
{
|
||||||
if (state.OutputWidth.HasValue && state.OutputHeight.HasValue)
|
if (state.OutputWidth.HasValue && state.OutputHeight.HasValue)
|
||||||
{
|
{
|
||||||
builder.Append(",RESOLUTION=\"")
|
builder.Append(",RESOLUTION=")
|
||||||
.Append(state.OutputWidth.GetValueOrDefault())
|
.Append(state.OutputWidth.GetValueOrDefault())
|
||||||
.Append('x')
|
.Append('x')
|
||||||
.Append(state.OutputHeight.GetValueOrDefault())
|
.Append(state.OutputHeight.GetValueOrDefault());
|
||||||
.Append('"');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user