Skip to content

Commit

Permalink
Avoid error in commandline mode
Browse files Browse the repository at this point in the history
  • Loading branch information
maxim-zhao committed Jul 9, 2024
1 parent a4e77c1 commit 9ba8d73
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion LibSidWiz/Outputs/FfmpegOutput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,10 @@ public void Dispose()
{
// This triggers a shutdown
_process?.StandardInput.BaseStream.Close();
_process?.StandardError.Close();
if (_throwStandardError)
{
_process?.StandardError.Close();
}
// And we wait for it to finish...
_process?.WaitForExit();
_process?.Dispose();
Expand Down

0 comments on commit 9ba8d73

Please sign in to comment.