memsink: caps protocol

This commit is contained in:
Maxim Devaev
2026-07-06 09:22:19 +03:00
parent ce231e7963
commit b1c5276ab4
7 changed files with 59 additions and 23 deletions

View File

@@ -157,7 +157,8 @@ static void *_video_sink_thread(void *arg) {
US_LOG_INFO("Memsink opened; reading frames ...");
while (!_STOP && _HAS_WATCHERS) {
const int got = us_memsink_client_get(sink, tmp, NULL, atomic_load(&_g_key_required));
const us_memsink_wants_s w_put = {.key = atomic_load(&_g_key_required)};
const int got = us_memsink_client_get(sink, tmp, NULL, &w_put);
if (got == 0) {
const int ri = us_ring_producer_acquire(_g_video_ring, 0);
if (ri >= 0) {