Rename bufferSize parameter to count

This commit is contained in:
Filip Klembara
2021-06-01 11:28:44 +02:00
parent f4aae34874
commit 39e51a8345
2 changed files with 3 additions and 3 deletions

View File

@ -310,7 +310,7 @@ RTC_EXPORT int rtcSetNeedsToSendRtcpSr(int id);
int rtcGetTrackPayloadTypesForCodec(int tr, const char * ccodec, int * buffer, int size);
/// 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
int rtcGetCNameForSsrc(int tr, uint32_t ssrc, char * cname, int cnameSize);

View File

@ -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([&] {
auto track = getTrack(tr);
auto ssrcs = track->description().getSSRCs();
return copyAndReturn(ssrcs, buffer, bufferSize);
return copyAndReturn(ssrcs, buffer, count);
});
}