rework live stream creation

This commit is contained in:
Luke Pulverenti
2017-09-28 13:04:06 -04:00
parent 2e0e1697a8
commit 539fecd08b
9 changed files with 16 additions and 101 deletions

View File

@@ -6,11 +6,6 @@ namespace MediaBrowser.Controller.IO
{
public static class StreamHelper
{
public static void CopyTo(Stream source, Stream destination, int bufferSize, CancellationToken cancellationToken)
{
CopyTo(source, destination, bufferSize, null, cancellationToken);
}
public static void CopyTo(Stream source, Stream destination, int bufferSize, Action onStarted, CancellationToken cancellationToken)
{
byte[] buffer = new byte[bufferSize];