From fd723e06a90cf0b483ee970da87d7bec7d5434ec Mon Sep 17 00:00:00 2001 From: Malte Rosenbjerg Date: Sun, 6 Dec 2020 00:34:27 +0100 Subject: [PATCH] Add debug info --- FFMpegCore/FFMpeg/Arguments/PipeArgument.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/FFMpegCore/FFMpeg/Arguments/PipeArgument.cs b/FFMpegCore/FFMpeg/Arguments/PipeArgument.cs index 4a6113a..12d84d1 100644 --- a/FFMpegCore/FFMpeg/Arguments/PipeArgument.cs +++ b/FFMpegCore/FFMpeg/Arguments/PipeArgument.cs @@ -1,4 +1,5 @@ using System; +using System.Diagnostics; using System.IO.Pipes; using System.Threading; using System.Threading.Tasks; @@ -30,6 +31,7 @@ public void Pre() public void Post() { + Debug.WriteLine($"Disposing NamedPipeServerStream on {GetType().Name}"); Pipe?.Dispose(); Pipe = null!; } @@ -39,9 +41,11 @@ public async Task During(CancellationToken cancellationToken = default) try { await ProcessDataAsync(cancellationToken); + Debug.WriteLine($"Disconnecting NamedPipeServerStream on {GetType().Name}"); } catch (TaskCanceledException) { + Debug.WriteLine($"ProcessDataAsync on {GetType().Name} cancelled"); } Pipe.Disconnect(); }