Fix ice status check error

This commit is contained in:
dijunkun
2023-10-11 09:45:58 +08:00
parent 7216d318b4
commit b887fcbf86

View File

@@ -504,8 +504,6 @@ int main() {
rect, 60, rect, 60,
[](unsigned char *data, int size, int width, [](unsigned char *data, int size, int width,
int height) -> void { int height) -> void {
// std::cout << "Send" << std::endl;
auto now_time = std::chrono::high_resolution_clock::now(); auto now_time = std::chrono::high_resolution_clock::now();
std::chrono::duration<double> duration = std::chrono::duration<double> duration =
now_time - last_frame_time_; now_time - last_frame_time_;
@@ -516,6 +514,7 @@ int main() {
(unsigned char *)nv12_buffer_); (unsigned char *)nv12_buffer_);
SendData(peer_server, DATA_TYPE::VIDEO, SendData(peer_server, DATA_TYPE::VIDEO,
(const char *)nv12_buffer_, NV12_BUFFER_SIZE); (const char *)nv12_buffer_, NV12_BUFFER_SIZE);
// std::cout << "Send" << std::endl;
last_frame_time_ = now_time; last_frame_time_ = now_time;
} }
}); });