[fix] fix unused variables and type conversions

This commit is contained in:
dijunkun
2024-11-26 17:31:37 +08:00
parent 1e58abdfdd
commit 0caa243006
4 changed files with 13 additions and 8 deletions

View File

@@ -88,7 +88,8 @@ int Render::ControlBar() {
RemoteAction remote_action;
remote_action.type = ControlType::audio_capture;
remote_action.a = audio_capture_button_pressed_;
SendData(peer_, (const char*)&remote_action, sizeof(remote_action));
SendDataFrame(peer_, (const char*)&remote_action,
sizeof(remote_action));
}
}
if (!audio_capture_button_pressed_) {