Bustage fix for bug 805333. a=bustage
authorChris Jones <jones.chris.g@gmail.com>
Wed, 05 Dec 2012 19:34:17 -0800
changeset 124937 3c81e1c0d252325d6060d2252725ead8a2c6e705
parent 124936 74987fe38fd23359ceb2953eee65930f02119c1a
child 124938 d1991888caa3faad25e11b1df766ffce7cb9c96e
push id297
push userlsblakk@mozilla.com
push dateTue, 26 Mar 2013 17:28:00 +0000
treeherdermozilla-release@64d7b45c34e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
bugs805333
milestone20.0a1
first release with
nightly linux32
3c81e1c0d252 / 20.0a1 / 20121206030737 / files
nightly linux64
3c81e1c0d252 / 20.0a1 / 20121206030737 / files
nightly mac
3c81e1c0d252 / 20.0a1 / 20121206030737 / files
nightly win32
3c81e1c0d252 / 20.0a1 / 20121206030737 / files
nightly win64
3c81e1c0d252 / 20.0a1 / 20121206030737 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bustage fix for bug 805333. a=bustage
dom/audiochannel/AudioChannelService.cpp
--- a/dom/audiochannel/AudioChannelService.cpp
+++ b/dom/audiochannel/AudioChannelService.cpp
@@ -140,16 +140,20 @@ AudioChannelService::GetMuted(AudioChann
         break;
 
       case AUDIO_CHANNEL_NOTIFICATION:
       case AUDIO_CHANNEL_ALARM:
       case AUDIO_CHANNEL_TELEPHONY:
       case AUDIO_CHANNEL_PUBLICNOTIFICATION:
         // Nothing to do
         break;
+
+      case AUDIO_CHANNEL_LAST:
+        MOZ_NOT_REACHED();
+        return false;
     }
   }
 
   bool muted = false;
 
   // Priorities:
   switch (aType) {
     case AUDIO_CHANNEL_NORMAL:
@@ -161,16 +165,20 @@ AudioChannelService::GetMuted(AudioChann
 
     case AUDIO_CHANNEL_NOTIFICATION:
     case AUDIO_CHANNEL_ALARM:
     case AUDIO_CHANNEL_TELEPHONY:
       muted = ChannelsActiveWithHigherPriorityThan(aType);
 
     case AUDIO_CHANNEL_PUBLICNOTIFICATION:
       break;
+
+    case AUDIO_CHANNEL_LAST:
+      MOZ_NOT_REACHED();
+      return false;
   }
 
   // Notification if needed.
   if (!muted) {
 
     // Calculating the most important unmuted channel:
     AudioChannelType higher = AUDIO_CHANNEL_NORMAL;
     for (int32_t type = AUDIO_CHANNEL_NORMAL;