mirror of
https://github.com/mii443/libdatachannel.git
synced 2025-08-22 15:15:28 +00:00
Rename bufferSize parameter to count
This commit is contained in:
@ -310,7 +310,7 @@ RTC_EXPORT int rtcSetNeedsToSendRtcpSr(int id);
|
|||||||
int rtcGetTrackPayloadTypesForCodec(int tr, const char * ccodec, int * buffer, int size);
|
int rtcGetTrackPayloadTypesForCodec(int tr, const char * ccodec, int * buffer, int size);
|
||||||
|
|
||||||
/// Get all SSRCs for given track
|
/// Get all SSRCs for given track
|
||||||
int rtcGetSsrcsForTrack(int tr, uint32_t * buffer, int bufferSize);
|
int rtcGetSsrcsForTrack(int tr, uint32_t * buffer, int count);
|
||||||
|
|
||||||
/// Get CName for SSRC
|
/// Get CName for SSRC
|
||||||
int rtcGetCNameForSsrc(int tr, uint32_t ssrc, char * cname, int cnameSize);
|
int rtcGetCNameForSsrc(int tr, uint32_t ssrc, char * cname, int cnameSize);
|
||||||
|
@ -694,11 +694,11 @@ int rtcGetTrackPayloadTypesForCodec(int tr, const char * ccodec, int * buffer, i
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
int rtcGetSsrcsForTrack(int tr, uint32_t * buffer, int bufferSize) {
|
int rtcGetSsrcsForTrack(int tr, uint32_t * buffer, int count) {
|
||||||
return wrap([&] {
|
return wrap([&] {
|
||||||
auto track = getTrack(tr);
|
auto track = getTrack(tr);
|
||||||
auto ssrcs = track->description().getSSRCs();
|
auto ssrcs = track->description().getSSRCs();
|
||||||
return copyAndReturn(ssrcs, buffer, bufferSize);
|
return copyAndReturn(ssrcs, buffer, count);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user