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