Preserve video format notifications before capture starts

Confirm the requested format before clearing stale audio and video frame notifications.

Validation: SDK Release built with the current worktree; staged whitespace check passed.
This commit is contained in:
Mark.lin
2026-11-16 20:55:07 +08:00
parent 3f4d416076
commit 47a5f041ee
2 changed files with 8 additions and 12 deletions
+1 -4
View File
@@ -354,9 +354,6 @@ struct gvfg_channel_session_t
if (!session)
return reject(GVFG_ESTATE, "configure stream rejected: channel is not open");
const gvfg_status_t st = session->configure_stream();
if (st != GVFG_OK)
return st;
const gvfg_status_t signalStatus = querySignal();
if (signalStatus != GVFG_OK)
return signalStatus;
@@ -366,7 +363,7 @@ struct gvfg_channel_session_t
return reject(GVFG_ETIMEOUT,
"gvfg_start_channel rejected: no input signal");
}
return GVFG_OK;
return session->configure_stream();
}
gvfg_status_t readFrame(gvfg_frame_t &out, uint32_t timeoutMs,