Deprecate RemoveTrack (old signature)
This also removes all internal usage of RemoveTrack, and changes the replacement function to RemoveTrackOrError rather than RemoveTrackNew. Bug: webrtc:9534 Change-Id: Idf7bb17495686de77c70428dcbfb12278328ce59 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/244094 Reviewed-by: Niels Moller <nisse@webrtc.org> Reviewed-by: Henrik Boström <hbos@webrtc.org> Commit-Queue: Harald Alvestrand <hta@webrtc.org> Cr-Commit-Position: refs/heads/main@{#35624}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
e7cc8830ef
commit
09a0d0171c
@ -776,8 +776,10 @@ static jboolean JNI_PeerConnection_RemoveTrack(
|
||||
JNIEnv* jni,
|
||||
const JavaParamRef<jobject>& j_pc,
|
||||
jlong native_sender) {
|
||||
return ExtractNativePC(jni, j_pc)->RemoveTrack(
|
||||
reinterpret_cast<RtpSenderInterface*>(native_sender));
|
||||
return ExtractNativePC(jni, j_pc)
|
||||
->RemoveTrackOrError(rtc::scoped_refptr<RtpSenderInterface>(
|
||||
reinterpret_cast<RtpSenderInterface*>(native_sender)))
|
||||
.ok();
|
||||
}
|
||||
|
||||
static ScopedJavaLocalRef<jobject> JNI_PeerConnection_AddTransceiverWithTrack(
|
||||
|
||||
Reference in New Issue
Block a user