소스 검색

- fix ArgumentOutOfRangeException at MediaBrowser.Api.Playback.BaseStreamingService.ParseTimeSeekHeader (second substring argument is length)

marius 5 년 전
부모
커밋
b711ece829
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      MediaBrowser.Api/Playback/BaseStreamingService.cs

+ 1 - 1
MediaBrowser.Api/Playback/BaseStreamingService.cs

@@ -634,7 +634,7 @@ namespace MediaBrowser.Api.Playback
             }
             else
             {
-                value = value.Substring(Npt.Length, index);
+                value = value.Substring(Npt.Length, index - Npt.Length);
             }
 
             if (value.IndexOf(':') == -1)