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

Unified Diff: talk/app/webrtc/objc/RTCEnumConverter.mm

Issue 1790633002: Propagate MediaStreamSource state to video tracks the same way as audio. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@refactor_track
Patch Set: Fix bug with wrong enum values. Created 4 years, 9 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
« no previous file with comments | « no previous file | talk/app/webrtc/objc/public/RTCTypes.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: talk/app/webrtc/objc/RTCEnumConverter.mm
diff --git a/talk/app/webrtc/objc/RTCEnumConverter.mm b/talk/app/webrtc/objc/RTCEnumConverter.mm
index f8ab8383e4588608aae974558c720ecc969ee4dd..03b249c3a7132c095bea9a06fd456e7c0cf429e6 100644
--- a/talk/app/webrtc/objc/RTCEnumConverter.mm
+++ b/talk/app/webrtc/objc/RTCEnumConverter.mm
@@ -111,28 +111,20 @@
+ (webrtc::MediaStreamTrackInterface::TrackState)
convertTrackStateToNative:(RTCTrackState)state {
switch (state) {
- case RTCTrackStateInitializing:
- return webrtc::MediaStreamTrackInterface::kInitializing;
case RTCTrackStateLive:
return webrtc::MediaStreamTrackInterface::kLive;
case RTCTrackStateEnded:
return webrtc::MediaStreamTrackInterface::kEnded;
- case RTCTrackStateFailed:
- return webrtc::MediaStreamTrackInterface::kFailed;
}
}
+ (RTCTrackState)convertTrackStateToObjC:
(webrtc::MediaStreamTrackInterface::TrackState)nativeState {
switch (nativeState) {
- case webrtc::MediaStreamTrackInterface::kInitializing:
- return RTCTrackStateInitializing;
case webrtc::MediaStreamTrackInterface::kLive:
return RTCTrackStateLive;
case webrtc::MediaStreamTrackInterface::kEnded:
return RTCTrackStateEnded;
- case webrtc::MediaStreamTrackInterface::kFailed:
- return RTCTrackStateFailed;
}
}
« no previous file with comments | « no previous file | talk/app/webrtc/objc/public/RTCTypes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698