aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcvium <clausvium@gmail.com>2021-09-10 09:56:48 +0200
committercvium <clausvium@gmail.com>2021-09-10 09:56:48 +0200
commitf3573b061c4d9eb869316ce3de320fd8803aeef8 (patch)
tree5f688788c598f18e7c1b768568f83817b367a7f2
parent1603d1928e888abeccc6a5fab2e1f13aa65eea6c (diff)
Remove the unused arg
-rw-r--r--Emby.Server.Implementations/Library/ExclusiveLiveStream.cs2
-rw-r--r--Emby.Server.Implementations/LiveTv/TunerHosts/LiveStream.cs2
-rw-r--r--MediaBrowser.Controller/Library/IDirectStreamProvider.cs5
-rw-r--r--MediaBrowser.Controller/Library/ILiveStream.cs2
4 files changed, 5 insertions, 6 deletions
diff --git a/Emby.Server.Implementations/Library/ExclusiveLiveStream.cs b/Emby.Server.Implementations/Library/ExclusiveLiveStream.cs
index 9ba9f2115..868071a99 100644
--- a/Emby.Server.Implementations/Library/ExclusiveLiveStream.cs
+++ b/Emby.Server.Implementations/Library/ExclusiveLiveStream.cs
@@ -42,7 +42,7 @@ namespace Emby.Server.Implementations.Library
return _closeFn();
}
- public Stream GetStream(bool seekNearEnd)
+ public Stream GetStream()
{
throw new NotSupportedException();
}
diff --git a/Emby.Server.Implementations/LiveTv/TunerHosts/LiveStream.cs b/Emby.Server.Implementations/LiveTv/TunerHosts/LiveStream.cs
index 4f9d34327..817b1f804 100644
--- a/Emby.Server.Implementations/LiveTv/TunerHosts/LiveStream.cs
+++ b/Emby.Server.Implementations/LiveTv/TunerHosts/LiveStream.cs
@@ -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;
diff --git a/MediaBrowser.Controller/Library/IDirectStreamProvider.cs b/MediaBrowser.Controller/Library/IDirectStreamProvider.cs
index 2939668f7..96f8b7eba 100644
--- a/MediaBrowser.Controller/Library/IDirectStreamProvider.cs
+++ b/MediaBrowser.Controller/Library/IDirectStreamProvider.cs
@@ -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();
}
}
diff --git a/MediaBrowser.Controller/Library/ILiveStream.cs b/MediaBrowser.Controller/Library/ILiveStream.cs
index a29a91fe9..4c44a17fd 100644
--- a/MediaBrowser.Controller/Library/ILiveStream.cs
+++ b/MediaBrowser.Controller/Library/ILiveStream.cs
@@ -27,6 +27,6 @@ namespace MediaBrowser.Controller.Library
Task Close();
- Stream GetStream(bool seekNearEnd = true);
+ Stream GetStream();
}
}