mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 04:35:34 +08:00
[fix] fix transport feedback module
This commit is contained in:
@@ -4,12 +4,12 @@
|
||||
|
||||
#define IP_PACKET_SIZE 1500 // we assume ethernet
|
||||
|
||||
bool RtcpPacket::OnBufferFull(std::vector<uint8_t>& packet,
|
||||
bool RtcpPacket::OnBufferFull(uint8_t* packet, size_t* index,
|
||||
PacketReadyCallback callback) const {
|
||||
if (packet.empty()) {
|
||||
if (*index == 0) {
|
||||
return false;
|
||||
}
|
||||
callback(packet);
|
||||
callback(packet, *index);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user