Bug 799191: incorrect audioCount in GetUserMediaDevicesRunnable r=derf a=bajaj
authorRandell Jesup <rjesup@jesup.org>
Tue, 09 Oct 2012 17:56:22 -0400
changeset 113329 bee211decb2d38498f79b290d4014fd69fba2b34
parent 113328 072510b9491c57bb8679063e35f00d87d7f13cc0
child 113330 c0a02b1a8a039de8768faa3c4b125079eeef1de7
push id2288
push userrjesup@wgate.com
push dateSat, 13 Oct 2012 14:42:50 +0000
treeherdermozilla-aurora@bee211decb2d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersderf, bajaj
bugs799191
milestone18.0a2
Bug 799191: incorrect audioCount in GetUserMediaDevicesRunnable r=derf a=bajaj
dom/media/MediaManager.cpp
--- a/dom/media/MediaManager.cpp
+++ b/dom/media/MediaManager.cpp
@@ -549,17 +549,17 @@ public:
     MediaManager* manager = MediaManager::Get();
 
     nsTArray<nsRefPtr<MediaEngineVideoSource> > videoSources;
     manager->GetBackend()->EnumerateVideoDevices(&videoSources);
     videoCount = videoSources.Length();
 
     nsTArray<nsRefPtr<MediaEngineAudioSource> > audioSources;
     manager->GetBackend()->EnumerateAudioDevices(&audioSources);
-    audioCount = videoSources.Length();
+    audioCount = audioSources.Length();
 
     nsTArray<nsCOMPtr<nsIMediaDevice> > *devices =
       new nsTArray<nsCOMPtr<nsIMediaDevice> >;
 
     for (i = 0; i < videoCount; i++) {
       devices->AppendElement(new MediaDevice(videoSources[i]));
     }
     for (i = 0; i < audioCount; i++) {