Files
iptvnator/apps/electron-backend/native
4grayandClaude Fable 5 d438773388 feat(embedded-mpv): Windows frame-copy helper via WGL and named shm
Port the frame-copy helper to Windows: a WGL GlContext twin (hidden 1x1
window, 3.2 core context via wglCreateContextAttribsARB, post-1.1 GL
entry points resolved through wglGetProcAddress with the same names so
the shared render pipeline compiles unchanged), a QueryPerformanceCounter
frame_shm_now_ns twin, and a CreateFileMapping/MapViewOfFile ShmRing twin
behind the same FrameShmHeader layout. The stdio protocol keeps POSIX-style
/impv-* names on every platform; the native sides derive the session-local
Local\ mapping name.

The reader addon gets the _WIN32 shm twin and compiles as C++ on Windows
(MSVC's C mode has no <stdatomic.h>). binding.gyp grows the helper .exe
target linking the vendored import library plus opengl32; the mpv DLL is
already copied beside the exe by the runtime staging. cleanOutput also
removes a stale iptvnator_mpv_helper.exe so a failed rebuild cannot leave
the support probe pointing at a dead engine.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-15 20:43:47 +02:00
..