mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 13:20:43 +00:00
Fix update_unread_ptr to handle the case of only slaves connected
This commit is contained in:
parent
e70ee045bf
commit
d1ab288d73
@ -69,8 +69,16 @@ void netplay_update_unread_ptr(netplay_t *netplay)
|
|||||||
new_unread_frame_count = netplay->server_frame_count;
|
new_unread_frame_count = netplay->server_frame_count;
|
||||||
}
|
}
|
||||||
|
|
||||||
netplay->unread_ptr = new_unread_ptr;
|
if (new_unread_frame_count != (uint32_t) -1)
|
||||||
netplay->unread_frame_count = new_unread_frame_count;
|
{
|
||||||
|
netplay->unread_ptr = new_unread_ptr;
|
||||||
|
netplay->unread_frame_count = new_unread_frame_count;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
netplay->unread_ptr = netplay->self_ptr;
|
||||||
|
netplay->unread_frame_count = netplay->self_frame_count;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user