Skip to content

Commit

Permalink
Fixed failed initialization for video capture sources when only one s…
Browse files Browse the repository at this point in the history
…ource exists.
  • Loading branch information
sskodje committed Sep 13, 2022
1 parent bc9c702 commit 27f1a9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TestApp/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,6 @@ private void InitializeDefaultOverlays()
AnchorPoint = Anchor.TopLeft,
Offset = new ScreenSize(100, 100),
Size = new ScreenSize(0, 250)

},
IsEnabled = true
});
Expand Down Expand Up @@ -957,6 +956,7 @@ private void RefreshVideoCaptureItems()
VideoCaptureDevices.Add(device);
}
(this.Resources["MediaDeviceToDeviceIdConverter"] as MediaDeviceToDeviceIdConverter).MediaDevices = VideoCaptureDevices.ToList();
((VideoCaptureOverlay)Overlays.FirstOrDefault(x => x.Overlay is VideoCaptureOverlay).Overlay).DeviceName = VideoCaptureDevices.First().DeviceName;
}

private void RefreshSourceComboBox()
Expand Down

0 comments on commit 27f1a9f

Please sign in to comment.