@@ -96,20 +96,20 @@ protected override Task OnInitializeAsync(
96
96
97
97
return this . workingContext ! . InvokeAsync ( ( ) =>
98
98
{
99
- if ( NativeMethods_DirectShow . EnumerateDeviceMoniker (
100
- NativeMethods_DirectShow . CLSID_VideoInputDeviceCategory ) .
101
- Where ( moniker =>
102
- moniker . GetPropertyBag ( ) is { } pb &&
103
- pb . SafeReleaseBlock ( pb =>
104
- pb . GetValue ( "DevicePath" , default ( string ) ) ? . Trim ( ) is { } dp &&
105
- dp . Equals ( devicePath ) ) ) .
106
- Collect ( moniker =>
107
- moniker . BindToObject ( null , null , in NativeMethods_DirectShow . IID_IBaseFilter , out var captureSource ) == 0 ?
108
- captureSource as NativeMethods_DirectShow . IBaseFilter : null ) .
109
- FirstOrDefault ( ) is { } captureSource )
110
- {
111
- try
99
+ if ( NativeMethods_DirectShow . EnumerateDeviceMoniker (
100
+ NativeMethods_DirectShow . CLSID_VideoInputDeviceCategory ) .
101
+ Where ( moniker =>
102
+ moniker . GetPropertyBag ( ) is { } pb &&
103
+ pb . SafeReleaseBlock ( pb =>
104
+ pb . GetValue ( "DevicePath" , default ( string ) ) ? . Trim ( ) is { } dp &&
105
+ dp . Equals ( devicePath ) ) ) .
106
+ Collect ( moniker =>
107
+ moniker . BindToObject ( null , null , in NativeMethods_DirectShow . IID_IBaseFilter , out var captureSource ) == 0 ?
108
+ captureSource as NativeMethods_DirectShow . IBaseFilter : null ) .
109
+ FirstOrDefault ( ) is { } captureSource )
112
110
{
111
+ try
112
+ {
113
113
if ( captureSource . EnumeratePins ( ) .
114
114
Collect ( pin =>
115
115
pin . GetPinInfo ( ) is { } pinInfo &&
0 commit comments