mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +08:00
Fix compile error on Windows
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#include "OpusEncoderImpl.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <chrono>
|
||||
#include <cstring>
|
||||
|
||||
#include "OpusDecoderImpl.h"
|
||||
@@ -96,7 +96,7 @@ void OpusEncoderImpl::EncodeRun() {
|
||||
access_mutex.unlock();
|
||||
|
||||
} else {
|
||||
usleep(1000);
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user