Bug 1141622: bustage fix for warnings-as-errors r=bustage on a CLOSED TREE
authorRandell Jesup <rjesup@jesup.org>
Fri, 13 Mar 2015 10:12:59 -0400
changeset 233547 8b0b98f81a1496e2d96479d6ca59c562a569bbcc
parent 233546 b068aca286b5331f9927a955f7cf74c48f1fdd46
child 233548 4f6461936cd212e955fdb4a050b6cf154fb22acf
push id28417
push userryanvm@gmail.com
push dateFri, 13 Mar 2015 19:52:44 +0000
treeherdermozilla-central@977add19414a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
bugs1141622
milestone39.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1141622: bustage fix for warnings-as-errors r=bustage on a CLOSED TREE
dom/media/webrtc/MediaEngineWebRTCVideo.cpp
--- a/dom/media/webrtc/MediaEngineWebRTCVideo.cpp
+++ b/dom/media/webrtc/MediaEngineWebRTCVideo.cpp
@@ -159,18 +159,18 @@ MediaEngineWebRTCVideoSource::NumCapabil
   NS_ConvertUTF16toUTF8 uniqueId(mUniqueId); // TODO: optimize this?
 
   int num = mViECapture->NumberOfCapabilities(uniqueId.get(), kMaxUniqueIdLength);
   if (num > 0) {
     return num;
   }
 
   switch (mMediaSource) {
+    case dom::MediaSourceEnum::Camera:
 #ifdef XP_MACOSX
-    case dom::MediaSourceEnum::Camera:
       // Mac doesn't support capabilities.
       //
       // Hardcode generic desktop capabilities modeled on OSX camera.
       // Note: Values are empirically picked to be OSX friendly, as on OSX,
       // values other than these cause the source to not produce.
 
       if (mHardcodedCapabilities.IsEmpty()) {
         for (int i = 0; i < 9; i++) {