Refine signal caching and Sample device lifecycle
Compared with 350e8e5:
- perform one fresh GigabyteLib signal query for each explicit channel Start and reject a no-lock request with GVFG_ETIMEOUT instead of entering a placeholder monitoring stream
- keep running signal-status reads on the SDK cache and synchronize format-change, input plug-in, and input unplug state before publishing the corresponding event
- invalidate cached video information when the output depth changes so format selection does not cause an extra immediate hardware read
- make the Qt Sample refresh SDI information after a successful Start and on signal events without polling it from the periodic status timer
- close the Sample device session after the final running channel stops or an idle Start path fails, while preserving the selected device for the next Start
- document the updated Start result, event/cache ordering, query boundaries, and Sample ownership policy across the public API and internal flow guides
Validation: git diff --check passed. The SDK and Qt Sample builds completed successfully during this change. Hardware no-signal, plug/unplug, dual-process handoff, and recording tests were not rerun for this commit.
This commit is contained in:
@@ -64,6 +64,8 @@ signals:
|
||||
private:
|
||||
bool openDevice();
|
||||
bool applyOutputFormat(int channel);
|
||||
void closeDeviceSession(bool clearSelection);
|
||||
void closeDeviceIfIdle();
|
||||
|
||||
struct ChannelRuntime
|
||||
{
|
||||
@@ -125,4 +127,5 @@ private:
|
||||
std::array<bool, 2> channelStatusVisible_{{true, true}};
|
||||
QTimer *runtimeStatusTimer_ = nullptr;
|
||||
QString lastSignalStatusText_;
|
||||
bool closingDevice_ = false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user