diff options
| author | Tom Englund <tomenglund26@gmail.com> | 2025-11-11 21:00:59 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-11 20:00:59 +0000 |
| commit | cadf922417dcfd104c73e9648ebcc5d6f31435bf (patch) | |
| tree | 8c8acbac87f64827e3ed59e7bb8412b66a4170a6 /src/protocols/PresentationTime.cpp | |
| parent | ac8edc6a805ae411d066a088a0036971d781a279 (diff) | |
presentation: only send sync output on presented (#12255)
as protocol states there is two events. 'presented' or 'discarded'.
wp_presentation_feedback::sync_output
As presentation can be synchronized to only one output at a time, this event tells which output it was.
This event is only sent prior to the presented event.
Diffstat (limited to 'src/protocols/PresentationTime.cpp')
| -rw-r--r-- | src/protocols/PresentationTime.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocols/PresentationTime.cpp b/src/protocols/PresentationTime.cpp index 10803406..9849eb35 100644 --- a/src/protocols/PresentationTime.cpp +++ b/src/protocols/PresentationTime.cpp @@ -43,7 +43,7 @@ bool CPresentationFeedback::good() { void CPresentationFeedback::sendQueued(WP<CQueuedPresentationData> data, const Time::steady_tp& when, uint32_t untilRefreshNs, uint64_t seq, uint32_t reportedFlags) { auto client = m_resource->client(); - if LIKELY (PROTO::outputs.contains(data->m_monitor->m_name)) { + if LIKELY (PROTO::outputs.contains(data->m_monitor->m_name) && data->m_wasPresented) { if LIKELY (auto outputResource = PROTO::outputs.at(data->m_monitor->m_name)->outputResourceFrom(client); outputResource) m_resource->sendSyncOutput(outputResource->getResource()->resource()); } |
