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

Unified Diff: webrtc/api/objc/RTCAVFoundationVideoSource.h

Issue 1766653002: Replace SetCapturer and SetCaptureDevice by SetSource. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase. Created 4 years, 8 months 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
Index: webrtc/api/objc/RTCAVFoundationVideoSource.h
diff --git a/webrtc/api/objc/RTCAVFoundationVideoSource.h b/webrtc/api/objc/RTCAVFoundationVideoSource.h
index 6d224d3f8e554067f50999007f876f0754c3e349..5b15e08ba0b8baa46a5f1af196348630af95bfb3 100644
--- a/webrtc/api/objc/RTCAVFoundationVideoSource.h
+++ b/webrtc/api/objc/RTCAVFoundationVideoSource.h
@@ -23,7 +23,13 @@ NS_ASSUME_NONNULL_BEGIN
* guarantee its lifetime. Instead, we expose its properties through the ref
* counted video source interface.
*/
-@interface RTCAVFoundationVideoSource : RTCVideoSource
+@interface RTCAVFoundationVideoSource : RTCVideoSource {
+ // TODO(nisse): This is a crude hack, the pointer really is a
+ // webrtc::AVFoundationVideoCapturer*, but using a proper
+ // declaration with namespaces breaks inclusion from .m files, i.e.
+ // files which are Objective-C but not Objective-C++.
+ void *_capturer;
+}
- (instancetype)init NS_UNAVAILABLE;

Powered by Google App Engine
This is Rietveld 408576698