Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
fix: resolve cursor-sampler telemetry not working
Jodélcio Luzb8eeef55ab9a
diff --git a/electron/native-bridge/cursor/recording/windowsNativeRecordingSession.ts b/electron/native-bridge/cursor/recording/windowsNativeRecordingSession.tsindex 5c318f0f2..ea037b3fa 100644--- a/electron/native-bridge/cursor/recording/windowsNativeRecordingSession.ts+++ b/electron/native-bridge/cursor/recording/windowsNativeRecordingSession.ts@@ -22,10 +22,14 @@ function getCursorSamplerCandidates(): string[] {const p = join(app.getAppPath(), ...segs);return app.isPackaged ? p.replace(/\.asar([/\\])/, ".asar.unpacked$1") : p;};+ const resolvePackaged = (...segs: string[]) => {+ return app.isPackaged ? join(process.resourcesPath, ...segs) : null;+ };return [envPath,resolve("electron", "native", "wgc-capture", "build", "cursor-sampler.exe"),resolve("electron", "native", "bin", archTag, "cursor-sampler.exe"),+ resolvePackaged("electron", "native", "bin", archTag, "cursor-sampler.exe"),].filter((c): c is string => Boolean(c));}diff --git a/electron/native/wgc-capture/CMakeLists.txt b/electron/native/wgc-capture/CMakeLists.txtindex 32c5d6ef5..4b9a24a4e 100644--- a/electron/native/wgc-capture/CMakeLists.txt+++ b/electron/native/wgc-capture/CMakeLists.txt@@ -37,7 +37,7 @@ target_compile_definitions(wgc-capture PRIVATE_WIN32_WINNT=0x0A00)-target_compile_options(wgc-capture PRIVATE /EHsc /W4 /utf-8)+target_compile_options(wgc-capture PRIVATE /EHsc /W4 /utf-8 /await)target_link_libraries(wgc-capture PRIVATEd3d11diff --git a/electron/native/wgc-capture/src/main.cpp b/electron/native/wgc-capture/src/main.cppindex bb741d33e..9ea4e59df 100644--- a/electron/native/wgc-capture/src/main.cpp+++ b/electron/native/wgc-capture/src/main.cpp@@ -632,8 +632,8 @@ int main(int argc, char* argv[]) {(webcamOutputFrameIndex * 10'000'000ULL) / std::max(1, webcamCapture.fps()));if (!webcamEncoder.writeBgraFrame(webcamFrame, webcamTimestampHns)) {encodeFailed = true;- stopRequested = true;- cv.notify_all();+ control.stopRequested = true;+ control.cv.notify_all();return;}lastWrittenWebcamSequence = latestWebcamSequence;