yuanyuanxiang and deepseek-flash
6a51116873
Fix: repair two quality-switch regressions (monitor jump, H264 stall)
...
Every quality change restarts the capturer on both sides, and two defects
showed up along that path.
Monitor jump: on a multi-monitor client the view moved to another monitor.
switchScreen=false means "reuse the index", but index is the *next*
monitor to switch to, not the one being shown. Track `current` and read it
on the non-switch path; the switch path still advances.
H264 stall: switching from RGB565/DIFF back to H264 froze the view for up
to ten seconds. The client encoder kept its reference frames across the
gap, so it emitted P frames the server could not decode until the next
natural IDR. It is now rebuilt on the first H264 frame after an algorithm
or tuning change. The rebuild is requested with an atomic dirty flag that
the capture thread consumes in ensureEncoder(), because resetting the
encoder from the network thread raced with encode().
On the server, ApplyQualityLevel() only sets m_bResolutionChanging when
the client will really restart the capture: it compares the target
maxWidth with the client's reported bitmap width (cached atomically on
TOKEN_BITMAPINFO) and stays conservative while a previous resize is still
in flight. The fallback timeout drops from 5s to 1s, flushes the decoder
and asks the client for a keyframe (COMMAND_SCREEN_KEYFRAME_REQ).
Verified: Debug client and server build clean; the 1920-wide High->Good
switch no longer waits out the gate. Not yet retested on a live session.
Co-Authored-By: deepseek-flash
2026-11-05 18:10:56 +01:00
..
2026-10-09 16:23:23 +02:00
2026-11-05 14:24:42 +01:00
2026-04-19 22:55:21 +02:00
2026-10-29 16:12:14 +01:00
2026-10-29 22:06:33 +01:00
2026-04-19 22:55:21 +02:00
2026-10-20 21:48:13 +02:00
2026-11-01 20:40:02 +01:00
2026-11-01 20:40:02 +01:00
2026-04-19 22:55:21 +02:00
2026-07-14 22:32:29 +02:00
2026-04-19 22:55:21 +02:00
2026-11-05 14:24:42 +01:00
2026-11-05 14:24:42 +01:00
2026-11-05 14:24:42 +01:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-05-23 13:37:28 +02:00
2026-05-23 13:37:28 +02:00
2026-10-15 13:48:27 +02:00
2026-10-15 13:48:27 +02:00
2026-11-01 20:40:02 +01:00
2026-11-01 20:40:02 +01:00
2026-11-01 15:39:54 +01:00
2026-11-01 15:39:54 +01:00
2026-08-20 17:54:33 +02:00
2026-08-15 11:09:14 +02:00
2026-10-10 13:58:38 +02:00
2026-04-19 22:55:21 +02:00
2026-08-20 17:54:33 +02:00
2026-08-20 17:54:33 +02:00
2026-10-08 22:15:31 +02:00
2026-10-08 22:15:31 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-10-08 21:53:53 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-09-03 13:29:39 +02:00
2026-09-03 13:29:39 +02:00
2026-10-20 13:12:16 +02:00
2026-06-20 13:01:35 +02:00
2026-10-24 15:45:49 +02:00
2026-10-24 15:45:49 +02:00
2026-11-02 19:39:17 +01:00
2026-10-04 18:23:06 +02:00
2026-11-01 20:40:02 +01:00
2026-10-09 14:05:52 +02:00
2026-05-22 00:31:54 +02:00
2026-10-08 21:53:53 +02:00
2026-04-19 22:55:21 +02:00
2026-05-05 21:21:38 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-09-06 09:39:59 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-11-01 20:40:02 +01:00
2026-11-01 20:40:02 +01:00
2026-11-02 18:30:37 +01:00
2026-11-02 18:52:38 +01:00
2026-04-19 22:55:21 +02:00
2026-11-05 14:22:12 +01:00
2026-11-05 14:22:12 +01:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-11-01 14:33:58 +01:00
2026-08-20 16:36:30 +02:00
2026-04-19 22:55:21 +02:00
2026-10-21 20:01:41 +02:00
2026-08-16 14:37:11 +02:00
2026-11-01 14:33:58 +01:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-10-15 13:48:27 +02:00
2026-04-19 22:55:21 +02:00
2026-10-30 19:15:14 +01:00
2026-10-30 17:22:17 +01:00
2026-10-15 13:48:27 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-10-12 15:41:24 +02:00
2026-05-11 20:22:07 +02:00
2026-11-03 17:48:17 +01:00
2026-05-27 15:28:56 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-07-16 00:10:12 +02:00
2026-07-16 00:10:12 +02:00
2026-04-19 22:55:21 +02:00
2026-10-28 21:25:49 +01:00
2026-10-23 11:19:21 +02:00
2026-10-29 21:22:43 +01:00
2026-10-29 21:22:43 +01:00
2026-10-28 21:25:49 +01:00
2026-10-21 20:01:41 +02:00
2026-11-03 16:06:41 +01:00
2026-11-03 16:06:41 +01:00
2026-11-01 15:39:54 +01:00
2026-10-28 21:25:46 +01:00
2026-11-01 15:39:54 +01:00
2026-10-26 13:56:41 +01:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-08-05 20:07:21 +02:00
2026-10-10 13:58:38 +02:00
2026-04-19 22:55:21 +02:00
2026-10-04 14:39:38 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-10-08 21:53:53 +02:00
2026-04-25 17:30:07 +02:00
2026-05-13 13:05:31 +02:00
2026-05-13 13:05:31 +02:00
2026-05-21 23:33:13 +02:00
2026-04-19 22:55:21 +02:00
2026-10-08 21:53:53 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-11-05 14:24:42 +01:00
2026-11-05 18:10:56 +01:00
2026-11-05 18:10:56 +01:00
2026-10-10 13:58:38 +02:00
2026-04-19 22:55:21 +02:00
2026-10-30 19:15:14 +01:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-11-01 15:39:54 +01:00
2026-11-01 15:39:54 +01:00
2026-10-30 17:22:17 +01:00
2026-10-30 17:22:17 +01:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-06-06 13:02:29 +02:00
2026-04-19 22:55:21 +02:00
2026-09-11 16:28:37 +02:00
2026-09-11 16:28:37 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-10-19 10:05:58 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-10-04 18:23:06 +02:00
2026-10-09 14:05:52 +02:00
2026-08-13 12:59:29 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-05-10 17:36:46 +02:00
2026-11-01 15:39:54 +01:00
2026-11-01 15:39:54 +01:00
2026-09-03 13:29:39 +02:00
2026-09-03 13:29:39 +02:00
2026-10-08 21:53:53 +02:00
2026-10-06 17:50:30 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-11-02 18:30:37 +01:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-05-17 18:46:21 +02:00
2026-10-26 17:44:13 +01:00
2026-10-26 17:44:13 +01:00
2026-04-19 22:55:21 +02:00
2026-05-30 18:10:15 +02:00
2026-05-30 18:10:15 +02:00