Remove the unused arg

pull/6538/head
cvium 3 years ago
parent 1603d1928e
commit f3573b061c

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

@ -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;

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

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

Loading…
Cancel
Save