Procházet zdrojové kódy

Remove the unused arg

cvium před 3 roky
rodič
revize
f3573b061c

+ 1 - 1
Emby.Server.Implementations/Library/ExclusiveLiveStream.cs

@@ -42,7 +42,7 @@ namespace Emby.Server.Implementations.Library
             return _closeFn();
             return _closeFn();
         }
         }
 
 
-        public Stream GetStream(bool seekNearEnd)
+        public Stream GetStream()
         {
         {
             throw new NotSupportedException();
             throw new NotSupportedException();
         }
         }

+ 1 - 1
Emby.Server.Implementations/LiveTv/TunerHosts/LiveStream.cs

@@ -95,7 +95,7 @@ namespace Emby.Server.Implementations.LiveTv.TunerHosts
             return Task.CompletedTask;
             return Task.CompletedTask;
         }
         }
 
 
-        public Stream GetStream(bool seekNearEnd = true)
+        public Stream GetStream()
         {
         {
             var stream = GetInputStream(TempFilePath, AsyncFile.UseAsyncIO);
             var stream = GetInputStream(TempFilePath, AsyncFile.UseAsyncIO);
             bool seekFile = (DateTime.UtcNow - DateOpened).TotalSeconds > 10;
             bool seekFile = (DateTime.UtcNow - DateOpened).TotalSeconds > 10;

+ 2 - 3
MediaBrowser.Controller/Library/IDirectStreamProvider.cs

@@ -11,10 +11,9 @@ namespace MediaBrowser.Controller.Library
     public interface IDirectStreamProvider
     public interface IDirectStreamProvider
     {
     {
         /// <summary>
         /// <summary>
-        /// Gets the live stream, optionally seeks to the end of the file first.
+        /// Gets the live stream, shared streams seek to the end of the file first.
         /// </summary>
         /// </summary>
-        /// <param name="seekNearEnd">A value indicating whether to seek to the end of the file.</param>
         /// <returns>The stream.</returns>
         /// <returns>The stream.</returns>
-        Stream GetStream(bool seekNearEnd = true);
+        Stream GetStream();
     }
     }
 }
 }

+ 1 - 1
MediaBrowser.Controller/Library/ILiveStream.cs

@@ -27,6 +27,6 @@ namespace MediaBrowser.Controller.Library
 
 
         Task Close();
         Task Close();
 
 
-        Stream GetStream(bool seekNearEnd = true);
+        Stream GetStream();
     }
     }
 }
 }