Use a separate packet for refresh rate change
This commit is contained in:
@@ -69,6 +69,18 @@ void scenes::stream::operator()(to_headset::video_stream_description && desc)
|
||||
}
|
||||
}
|
||||
|
||||
void scenes::stream::operator()(to_headset::refresh_rate_change && rate)
|
||||
{
|
||||
try
|
||||
{
|
||||
session.set_refresh_rate(rate.fps);
|
||||
}
|
||||
catch (std::exception & e)
|
||||
{
|
||||
spdlog::warn("Failed to set refresh rate to {}: {}", rate.fps, e.what());
|
||||
}
|
||||
}
|
||||
|
||||
void scenes::stream::operator()(to_headset::timesync_query && query)
|
||||
{
|
||||
network_session->send_stream(from_headset::timesync_response{
|
||||
|
||||
Reference in New Issue
Block a user