aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/LiveTv/EmbyTV/EncodedRecorder.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2017-08-11 17:55:48 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2017-08-11 17:55:48 -0400
commitb7867214ef317bbf6502e53701a990ec5f13b645 (patch)
tree428594aefb259b23b2ae990a50417c75c41f4338 /Emby.Server.Implementations/LiveTv/EmbyTV/EncodedRecorder.cs
parenta7db7cd40cf303b4f95c25ac34bd7f947b084344 (diff)
update download error handling
Diffstat (limited to 'Emby.Server.Implementations/LiveTv/EmbyTV/EncodedRecorder.cs')
-rw-r--r--Emby.Server.Implementations/LiveTv/EmbyTV/EncodedRecorder.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/LiveTv/EmbyTV/EncodedRecorder.cs b/Emby.Server.Implementations/LiveTv/EmbyTV/EncodedRecorder.cs
index 90121b496c..48eba4117b 100644
--- a/Emby.Server.Implementations/LiveTv/EmbyTV/EncodedRecorder.cs
+++ b/Emby.Server.Implementations/LiveTv/EmbyTV/EncodedRecorder.cs
@@ -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)