fix: resolve build errors with missing using directive and variable name conflict

Co-authored-by: aider (openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
This commit is contained in:
2026-09-12 10:33:16 -07:00
parent 992bb21bdb
commit a62a283fd4
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -1,3 +1,4 @@
using ytLive.Helpers;
using ytLive.Models; using ytLive.Models;
namespace ytLive.Services.Compositor; namespace ytLive.Services.Compositor;
+3 -3
View File
@@ -317,16 +317,16 @@ public sealed class MediaCaptureFrameSource : ICameraFrameSource
} }
// MediaCapture video carries no alpha plane — the OS fills 255. // MediaCapture video carries no alpha plane — the OS fills 255.
var frame = new VideoFrame(bitmap.PixelWidth, bitmap.PixelHeight, pixels) var videoFrame = new VideoFrame(bitmap.PixelWidth, bitmap.PixelHeight, pixels)
{ IsOpaque = true, Epoch = ++_epoch }; { IsOpaque = true, Epoch = ++_epoch };
// Diagnostic: Log frame properties for compositor debugging // Diagnostic: Log frame properties for compositor debugging
if ((now - _lastAlphaProbe).TotalSeconds >= 5.0) if ((now - _lastAlphaProbe).TotalSeconds >= 5.0)
{ {
AppLog.Write($"Webcam frame emit: {frame.Width}x{frame.Height}, IsOpaque={frame.IsOpaque}, Epoch={frame.Epoch}"); AppLog.Write($"Webcam frame emit: {videoFrame.Width}x{videoFrame.Height}, IsOpaque={videoFrame.IsOpaque}, Epoch={videoFrame.Epoch}");
} }
FrameAvailable?.Invoke(frame); FrameAvailable?.Invoke(videoFrame);
} }
} }
catch (Exception ex) catch (Exception ex)