mirror of
https://github.com/WiVRn/WiVRn.git
synced 2026-11-24 02:51:39 -08:00
Fix deadlock in stream when shouldRender is false
This commit is contained in:
1 parent
0a1a3d2823
commit
0133dd67ca
1 file changed
+5
-2
@@ -358,7 +358,7 @@ void scenes::stream::render(const XrFrameState & frame_state)
|
||||
session.begin_frame();
|
||||
session.end_frame(frame_state.predictedDisplayTime, {});
|
||||
|
||||
std::unique_lock lock(decoder_mutex);
|
||||
std::unique_lock lock(frames_mutex);
|
||||
for (auto & i: decoders)
|
||||
{
|
||||
for (auto & frame: i.latest_frames)
|
||||
@@ -716,7 +716,10 @@ void scenes::stream::render(const XrFrameState & frame_state)
|
||||
|
||||
// Network operations may be blocking, do them once everything was submitted
|
||||
for (const auto & handle: blit_handles)
|
||||
send_feedback(handle->feedback);
|
||||
{
|
||||
if (handle)
|
||||
send_feedback(handle->feedback);
|
||||
}
|
||||
|
||||
read_actions();
|
||||
|
||||
|
||||
Reference in new issue
Block a user