mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-12-14 01:55:45 +00:00
Initialize lock inline
This commit is contained in:
parent
0387e47396
commit
2d149d4c9a
1 changed files with 1 additions and 2 deletions
|
|
@ -7,12 +7,11 @@ namespace FFMpegCore.Arguments;
|
|||
public abstract class PipeArgument
|
||||
{
|
||||
private readonly PipeDirection _direction;
|
||||
private readonly object _pipeLock;
|
||||
private readonly object _pipeLock = new();
|
||||
|
||||
protected PipeArgument(PipeDirection direction)
|
||||
{
|
||||
PipeName = PipeHelpers.GetUnqiuePipeName();
|
||||
_pipeLock = new object();
|
||||
_direction = direction;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue