Remove the unused arg

This commit is contained in:
cvium 2021-09-10 09:56:48 +02:00
parent 1603d1928e
commit f3573b061c
4 changed files with 5 additions and 6 deletions

View File

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

View File

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

View File

@ -11,10 +11,9 @@ namespace MediaBrowser.Controller.Library
public interface IDirectStreamProvider
{
/// <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>
/// <param name="seekNearEnd">A value indicating whether to seek to the end of the file.</param>
/// <returns>The stream.</returns>
Stream GetStream(bool seekNearEnd = true);
Stream GetStream();
}
}

View File

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