diff options
| author | phonetic112 <73647246+phonetic112@users.noreply.github.com> | 2024-07-20 04:11:32 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-20 10:11:32 +0200 |
| commit | f642fb97df5c69267a03452533de383ff8023570 (patch) | |
| tree | 3fbebc07bd3e191222ed48d13b44fac54480d947 /src/protocols/PresentationTime.cpp | |
| parent | 9b0993cc49b7285a2724a87fdb72bfc90cc75cc5 (diff) | |
core: Fix crash on opening chromium (#6932)
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 0275b53f..3907bf1e 100644 --- a/src/protocols/PresentationTime.cpp +++ b/src/protocols/PresentationTime.cpp @@ -60,7 +60,7 @@ void CPresentationFeedback::sendQueued(SP<CQueuedPresentationData> data, timespe if (reportedFlags & WLR_OUTPUT_PRESENT_HW_COMPLETION) flags |= WP_PRESENTATION_FEEDBACK_KIND_HW_COMPLETION; - if (data->wasPresented) + if (data->wasPresented && when) resource->sendPresented((uint32_t)(when->tv_sec >> 32), (uint32_t)(when->tv_sec & 0xFFFFFFFF), (uint32_t)(when->tv_nsec), untilRefreshNs, (uint32_t)(seq >> 32), (uint32_t)(seq & 0xFFFFFFFF), (wpPresentationFeedbackKind)flags); else |
