yuanyuanxiang and deepseek-flash
94cb4584c8
Fix(client): keep webcam capture alive across driver quirks
...
Opening video management killed the client on some hosts: the DirectShow
sample callback memcpy'd into a null bitmap buffer.
IMediaControl::Run legitimately returns S_FALSE while the state change
completes asynchronously; the graph is already running and frames are
delivered. Open passed that S_FALSE to its caller, which compared against
S_OK (introduced in 8d4c118 ) and took the "camera failed to open" abort
path while the graph kept running; ConstructBI never allocated the buffers
and the first callback wrote to address 0.
Open now returns S_OK only when the graph is running (S_FALSE normalised)
and a failure code otherwise. BufferCB drops a frame with S_OK when the
buffer is not ready or the driver hands over more bytes than negotiated,
so the start-up race or a resolution change can neither corrupt the heap
nor stop the stream. ConstructBI validates the dimensions and allocates the
full BITMAPINFO that SendBitMapInfor copies.
Also accept FORMAT_VideoInfo2 (many built-in cameras report it, and the
cast to VIDEOINFOHEADER read garbage dimensions) and fix BindVideoFilter's
comma-expression loop that called BindToStorage with a dangling IMoniker
once enumeration ran out.
Debug and Release x64 clients build; the host that reproducibly crashed
now works.
Co-Authored-By: deepseek-flash
2026-11-21 16:44:42 +01:00
..
2026-04-19 22:55:21 +02:00
2026-10-25 14:05:25 +01:00
2026-06-05 00:05:13 +02:00
2026-04-19 22:55:21 +02:00
2026-10-05 10:41:04 +02:00
2026-08-15 11:09:14 +02:00
2026-08-15 11:09:14 +02:00
2026-11-15 17:05:41 +01:00
2026-11-15 17:05:41 +01:00
2026-06-05 00:05:13 +02:00
2026-06-05 00:05:13 +02:00
2026-06-06 13:02:29 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-11-21 16:44:42 +01:00
2026-11-21 16:44:42 +01:00
2026-05-30 00:12:38 +02:00
2026-05-30 00:12:38 +02:00
2026-10-30 11:04:44 +01:00
2026-05-30 00:12:38 +02:00
2026-10-23 11:19:21 +02:00
2026-10-25 14:57:47 +01:00
2026-10-04 19:55:29 +02:00
2026-04-19 22:55:21 +02:00
2026-10-30 17:22:36 +01: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-11-20 12:23:08 +01:00
2026-11-20 12:23:08 +01:00
2026-07-13 19:02:25 +02:00
2026-07-13 19:02:25 +02:00
2026-04-19 22:55:21 +02:00
2026-11-10 15:09:24 +01:00
2026-11-10 15:09:24 +01:00
2026-10-20 21:15:45 +02:00
2026-10-04 18:23:06 +02:00
2026-06-05 00:05:13 +02:00
2026-06-05 00:05:13 +02:00
2026-05-09 23:13:24 +02:00
2026-11-01 20:40:02 +01:00
2026-10-05 10:52:58 +02:00
2026-10-05 10:52:58 +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-07 14:11:47 +01:00
2026-11-04 14:47:40 +01:00
2026-04-19 22:55:21 +02:00
2026-10-25 17:59:17 +01:00
2026-10-25 17:59:17 +01: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-10-23 11:19:21 +02:00
2026-04-19 22:55:21 +02:00
2026-11-14 12:19:44 +01:00
2026-11-14 11:43:30 +01:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-11-14 12:19:44 +01:00
2026-04-19 22:55:21 +02:00
2026-11-20 12:23:08 +01:00
2026-10-30 22:36:01 +01:00
2026-10-25 02:22:17 +02:00
2026-06-05 00:05:13 +02:00
2026-05-06 19:29:02 +02:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-11-08 21:49:20 +01:00
2026-11-01 20:40:02 +01:00
2026-11-10 15:09:24 +01:00
2026-10-20 21:48:13 +02:00
2026-11-06 17:17:18 +01:00
2026-10-30 22:36:01 +01:00
2026-10-30 22:36:01 +01:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-05-11 20:22:07 +02:00
2026-10-20 13:12:16 +02:00
2026-10-20 13:12:16 +02:00
2026-10-25 17:59:17 +01:00
2026-06-05 00:05:13 +02:00
2026-10-25 17:59:17 +01:00
2026-10-25 17:59:17 +01:00
2026-04-19 22:55:21 +02:00
2026-10-04 19:55: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-11-10 08:21:55 +01:00
2026-11-08 20:44:49 +01:00
2026-11-10 08:21:55 +01:00
2026-11-09 18:11:37 +01:00
2026-11-10 16:34:10 +01:00
2026-11-10 16:34:10 +01:00
2026-11-10 08:21:55 +01:00
2026-11-10 08:21:55 +01:00
2026-11-14 14:30:34 +01:00
2026-04-19 22:55:21 +02:00
2026-10-25 17:59:17 +01:00
2026-10-25 17:59:17 +01:00
2026-04-19 22:55:21 +02:00
2026-04-19 22:55:21 +02:00
2026-06-29 22:49:30 +02:00
2026-06-29 22:49:30 +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-08-21 19:50:11 +02:00
2026-06-05 00:05:13 +02:00
2026-05-08 12: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-11-10 15:09:24 +01:00
2026-06-05 00:05:13 +02:00
2026-10-23 12:22:44 +02:00
2026-10-23 12:22:44 +02:00
2026-06-05 00:05:13 +02:00
2026-10-30 23:39:05 +01:00
2026-06-29 22:49:30 +02:00
2026-04-19 22:55:21 +02:00
2026-11-14 14:30:34 +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-11-01 20:40:02 +01:00
2026-11-14 11:43:30 +01:00
2026-11-14 11:43:30 +01:00
2026-04-19 22:55:21 +02:00
2026-11-04 14:47:40 +01:00
2026-11-21 16:44:42 +01:00
2026-10-13 17:05:37 +02:00
2026-10-30 19:15:14 +01:00
2026-11-07 14:11:47 +01:00
2026-11-04 14:47:40 +01:00
2026-10-04 21:03:03 +02:00