[feat] upgrade MiniRTC and expose source ID in data callbacks

This commit is contained in:
dijunkun
2025-12-23 00:53:47 +08:00
parent 832b820096
commit 4035e0dd13
4 changed files with 14 additions and 5 deletions

View File

@@ -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;