This commit is contained in:
cxh 2025-10-15 16:09:23 +08:00
parent b96a4d45e9
commit 436a7e99d8

View File

@ -184,6 +184,7 @@ void RTMPManager::stream_loop(Camera cam, StreamType type, StreamContext *ctx)
{ {
res.result = 1; res.result = 1;
res.reason = "Failed to create pipeline"; res.reason = "Failed to create pipeline";
bool expected = false;
if (ctx->start_result_set.compare_exchange_strong(expected, true)) ctx->start_result.set_value(res); if (ctx->start_result_set.compare_exchange_strong(expected, true)) ctx->start_result.set_value(res);
return; return;
} }