fix non-windows

This commit is contained in:
KingKDot
2026-07-30 08:45:47 -05:00
parent 095a119bf4
commit efa8917168
3 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -111,7 +111,7 @@ func CaptureAndSend(ctx context.Context, env *rt.Env) error {
codec := desktopCodec()
directCanvasVideo := (codec == "h264" || codec == "hevc") &&
(codec != "h264" || !useDesktopSoftwareH264()) &&
useDesktopDuplication() &&
directDesktopVideoEnabled() &&
!(codec == "h264" && webrtcpub.IsActive(webrtcpub.KindDesktop))
directSlotAcquired := false
if directCanvasVideo {