Skip to content

Commit 74c49eb

Browse files
Squash: rename a function for consistency.
1 parent 1f3a2a0 commit 74c49eb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

jitsi-media-transform/src/main/kotlin/org/jitsi/nlj/MediaSourceDesc.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class MediaSourceDesc
147147
}
148148

149149
@Synchronized
150-
fun findRtpEncodingDesc(ssrc: Long): RtpEncodingDesc? = rtpEncodings.find { it.matches(ssrc) }
150+
fun findRtpEncodingDesc(ssrc: Long): RtpEncodingDesc? = rtpEncodings.find { it.hasSsrc(ssrc) }
151151

152152
@Synchronized
153153
fun getEncodingLayers(ssrc: Long): Array<RtpLayerDesc> {
@@ -194,7 +194,7 @@ class MediaSourceDesc
194194
* Checks whether any encoding of this source has this [ssrc]
195195
*/
196196
@Synchronized
197-
fun hasSsrc(ssrc: Long) = rtpEncodings.any { it.matches(ssrc) }
197+
fun hasSsrc(ssrc: Long) = rtpEncodings.any { it.hasSsrc(ssrc) }
198198
}
199199

200200
/**

jitsi-media-transform/src/main/kotlin/org/jitsi/nlj/RtpEncodingDesc.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,12 @@ constructor(
154154
}
155155

156156
/**
157-
* Gets a boolean indicating whether or not the SSRC specified in the
158-
* arguments matches this encoding or not.
157+
* Gets a boolean indicating whether the SSRC specified in the
158+
* arguments is used by this encoding.
159159
*
160160
* @param ssrc the SSRC to match.
161161
*/
162-
fun matches(ssrc: Long): Boolean {
162+
fun hasSsrc(ssrc: Long): Boolean {
163163
return if (primarySSRC == ssrc) {
164164
true
165165
} else {

0 commit comments

Comments
 (0)