Explorar o código

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

Fix incorrect HLS master playlist fields
Bond-009 %!s(int64=5) %!d(string=hai) anos
pai
achega
5e056beaae
Modificáronse 1 ficheiros con 4 adicións e 6 borrados
  1. 4 6
      MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs

+ 4 - 6
MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs

@@ -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());
             }
         }