File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
jitsi-media-transform/src/main/kotlin/org/jitsi/nlj Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff 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/* *
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments