Bug 906990 - Part 11: Fix bug where the |selected| field on a candidate pair statistic was never set. r=ekr
authorByron Campen [:bwc] <docfaraday@gmail.com>
Fri, 08 Nov 2013 16:45:39 -0800
changeset 176984 597455e2c0a37b9fd8311dbe2bb1fa77855956e7
parent 176983 d34815b6879be0606f15d120e2b996ee273b482d
child 176985 92f73b019839cccf115964b0eb5d31dbbda88330
push id462
push userraliiev@mozilla.com
push dateTue, 22 Apr 2014 00:22:30 +0000
treeherdermozilla-release@ac5db8c74ac0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersekr
bugs906990
milestone29.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 906990 - Part 11: Fix bug where the |selected| field on a candidate pair statistic was never set. r=ekr
media/mtransport/nricemediastream.cpp
--- a/media/mtransport/nricemediastream.cpp
+++ b/media/mtransport/nricemediastream.cpp
@@ -318,18 +318,18 @@ nsresult NrIceMediaStream::GetCandidateP
         pair.state = NrIceCandidatePair::State::STATE_CANCELLED;
         break;
       default:
         MOZ_ASSERT(0);
     }
 
     pair.priority = p1->priority;
     pair.nominated = p1->peer_nominated || p1->nominated;
-    pair.selected = p1->local->component &&
-                    p1->local->component->active == p1;
+    pair.selected = p1->remote->component &&
+                    p1->remote->component->active == p1;
     pair.codeword = p1->codeword;
 
     if (!ToNrIceCandidate(*(p1->local), &pair.local) ||
         !ToNrIceCandidate(*(p1->remote), &pair.remote)) {
       return NS_ERROR_FAILURE;
     }
 
     out_pairs->push_back(pair);