Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Unified Diff: webrtc/sdk/objc/Framework/Classes/RTCVideoTrack.mm

Issue 2484933003: Add iOS static library GN build script. NOTRY=True (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/modules/audio_device/ios/objc/RTCAudioSessionConfiguration.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/sdk/objc/Framework/Classes/RTCVideoTrack.mm
diff --git a/webrtc/sdk/objc/Framework/Classes/RTCVideoTrack.mm b/webrtc/sdk/objc/Framework/Classes/RTCVideoTrack.mm
index 6691375fbffb9ec601c598bd37448a69b7561627..9fa61114115a9f1a14d0b0e62f13c09145846c0a 100644
--- a/webrtc/sdk/objc/Framework/Classes/RTCVideoTrack.mm
+++ b/webrtc/sdk/objc/Framework/Classes/RTCVideoTrack.mm
@@ -69,9 +69,9 @@
- (void)addRenderer:(id<RTCVideoRenderer>)renderer {
// Make sure we don't have this renderer yet.
for (RTCVideoRendererAdapter *adapter in _adapters) {
- // Getting around unused variable error
- if (adapter.videoRenderer != renderer) {
+ if (adapter.videoRenderer == renderer) {
NSAssert(NO, @"|renderer| is already attached to this track");
+ return;
}
}
// Create a wrapper that provides a native pointer for us.
« no previous file with comments | « webrtc/modules/audio_device/ios/objc/RTCAudioSessionConfiguration.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698