Browse Source

Rename bufferSize parameter to count

Filip Klembara 4 years ago
parent
commit
39e51a8345
2 changed files with 3 additions and 3 deletions
  1. 1 1
      include/rtc/rtc.h
  2. 2 2
      src/capi.cpp

+ 1 - 1
include/rtc/rtc.h

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

+ 2 - 2
src/capi.cpp

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