mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-03-29 21:15:31 +08:00
[feat] upgrade MiniRTC and expose source ID in data callbacks
This commit is contained in:
@@ -165,6 +165,7 @@ std::filesystem::path FileReceiver::GetDefaultDesktopPath() {
|
||||
}
|
||||
|
||||
bool FileReceiver::OnData(const char* data, size_t size) {
|
||||
LOG_ERROR("FileReceiver::OnData: size={}", size);
|
||||
if (!data || size < sizeof(FileChunkHeader)) {
|
||||
LOG_ERROR("FileReceiver::OnData: invalid buffer");
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user