The Free Software Media System - Server Backend & API
update recordings
Luke Pulverenti6da57c86cd0b
diff --git a/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs b/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EmbyTV.csindex 1fbd3cb3e5..e534d8c675 100644--- a/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs+++ b/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs@@ -778,7 +778,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTVtry{// HDHR doesn't seem to release the tuner right away after first probing with ffmpeg- await Task.Delay(3000, cancellationToken).ConfigureAwait(false);+ //await Task.Delay(3000, cancellationToken).ConfigureAwait(false);var duration = recordingEndDate - DateTime.UtcNow;diff --git a/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EncodedRecorder.cs b/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EncodedRecorder.csindex ac5cda95ea..8b7bd897b9 100644--- a/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EncodedRecorder.cs+++ b/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EncodedRecorder.cs@@ -88,11 +88,11 @@ namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTV// MUST read both stdout and stderr asynchronously or a deadlock may occurrprocess.BeginOutputReadLine();+ onStarted();+// Important - don't await the log task or we won't be able to kill ffmpeg when the user stops playbackStartStreamingLog(process.StandardError.BaseStream, _logFileStream);- onStarted();-// Wait for the file to exist before proceeedingwhile (!_hasExited){