mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-12-14 18:15:44 +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
|
public abstract class PipeArgument
|
||||||
{
|
{
|
||||||
private readonly PipeDirection _direction;
|
private readonly PipeDirection _direction;
|
||||||
private readonly object _pipeLock;
|
private readonly object _pipeLock = new();
|
||||||
|
|
||||||
protected PipeArgument(PipeDirection direction)
|
protected PipeArgument(PipeDirection direction)
|
||||||
{
|
{
|
||||||
PipeName = PipeHelpers.GetUnqiuePipeName();
|
PipeName = PipeHelpers.GetUnqiuePipeName();
|
||||||
_pipeLock = new object();
|
|
||||||
_direction = direction;
|
_direction = direction;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue