Selaa lähdekoodia

Merge pull request #1678 from marius-luca-87/dlna_seek_exception_fix

Fix ArgumentOutOfRangeException in ParseTimeSeekHeader
Bond-009 5 vuotta sitten
vanhempi
sitoutus
503ab56a59
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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)