src.nth.io/

summaryrefslogtreecommitdiff
path: root/main/mdns_service.c
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2026-06-30 20:35:45 -0500
committerLuke Hoersten <[email protected]>2026-06-30 20:35:45 -0500
commit39aeeff0bcdfaa5ac4520e1fc7b90266c761c3f5 (patch)
treea92b47133a9dd9aa96af0429c0c2784e41f5279f /main/mdns_service.c
parentd71bdc9167fda3d5401ec3212a9d2269da7002fd (diff)
scrypted: gate snapshot POST on the live stream not yet painting
Now that the prebuffered stream paints in ~0.7s, the parallel snapshot usually loses the race and, if slow (a Unifi takePicture cache-miss can be several seconds), would land after live video and overpaint it with a staler still. pushSnapshot takes a shouldPaint predicate; startStream passes () => !firstStreamFrameSeen (flipped by the ffmpeg first-frame handler), so a snapshot that finishes after the stream is already painting is dropped before the POST. Preserves the snapshot as a gap-filler for the slow paths (live-edge fallback / cold prebuffer) where the stream hasn't painted yet.
Diffstat (limited to 'main/mdns_service.c')
0 files changed, 0 insertions, 0 deletions