From e23b571d7e291c376e34c21fee85b9bd65f9c78a Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Fri, 31 Oct 2025 11:04:24 +0100 Subject: [PATCH] Don't revert refresh rate on scene change --- client/scenes/stream_network.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/scenes/stream_network.cpp b/client/scenes/stream_network.cpp index 59cd2472..9bac8ba6 100644 --- a/client/scenes/stream_network.cpp +++ b/client/scenes/stream_network.cpp @@ -25,7 +25,6 @@ #include "utils/named_thread.h" -#include #include #include @@ -78,6 +77,9 @@ void scenes::stream::operator()(to_headset::video_stream_description && desc) void scenes::stream::operator()(to_headset::refresh_rate_change && rate) { session.set_refresh_rate(rate.fps); + std::shared_lock lock(decoder_mutex); + if (video_stream_description) + video_stream_description->fps = rate.fps; } void scenes::stream::operator()(to_headset::timesync_query && query)