|
@@ -289,8 +289,7 @@ namespace Emby.Server.Implementations.LiveTv.EmbyTV
|
|
/// </summary>
|
|
/// </summary>
|
|
private void OnFfMpegProcessExited(Process process, string inputFile)
|
|
private void OnFfMpegProcessExited(Process process, string inputFile)
|
|
{
|
|
{
|
|
- try
|
|
|
|
- {
|
|
|
|
|
|
+ using (process) {
|
|
_hasExited = true;
|
|
_hasExited = true;
|
|
|
|
|
|
_logFileStream?.Dispose();
|
|
_logFileStream?.Dispose();
|
|
@@ -315,10 +314,6 @@ namespace Emby.Server.Implementations.LiveTv.EmbyTV
|
|
exitCode)));
|
|
exitCode)));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- finally
|
|
|
|
- {
|
|
|
|
- process.Dispose();
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
|
|
|
|
private async void StartStreamingLog(Stream source, Stream target)
|
|
private async void StartStreamingLog(Stream source, Stream target)
|