update download error handling

This commit is contained in:
Luke Pulverenti
2017-08-11 17:55:48 -04:00
parent a7db7cd40c
commit b7867214ef
36 changed files with 23 additions and 2469 deletions

View File

@@ -207,9 +207,12 @@ namespace Emby.Server.Implementations.LiveTv.EmbyTV
inputModifier += " -fflags " + string.Join("", flags.ToArray());
}
if (!string.IsNullOrWhiteSpace(GetEncodingOptions().HardwareAccelerationType))
var videoStream = mediaSource.VideoStream;
var videoDecoder = videoStream == null ? null : new EncodingHelper(_mediaEncoder, _fileSystem, null).GetVideoDecoder(VideoType.VideoFile, videoStream, GetEncodingOptions());
if (!string.IsNullOrWhiteSpace(videoDecoder))
{
inputModifier += " -hwaccel auto";
inputModifier += " " + videoDecoder;
}
if (mediaSource.ReadAtNativeFramerate)