Fix bug in videoengine sanity check

Bug: webrtc:9302
Change-Id: I43d0fdf296232c5d1c2f556e50591faf5117e107
Reviewed-on: https://webrtc-review.googlesource.com/52941
Commit-Queue: Jonas Olsson <jonasolsson@webrtc.org>
Reviewed-by: Stefan Holmer <stefan@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23389}
diff --git a/media/engine/webrtcvideoengine.cc b/media/engine/webrtcvideoengine.cc
index 2b20be0..532f57e 100644
--- a/media/engine/webrtcvideoengine.cc
+++ b/media/engine/webrtcvideoengine.cc
@@ -2279,7 +2279,7 @@
   // should not be able to create a sender with the same SSRC as a receiver, but
   // right now this can't be done due to unittests depending on receiving what
   // they are sending from the same MediaChannel.
-  if (local_ssrc == config_.rtp.remote_ssrc) {
+  if (local_ssrc == config_.rtp.local_ssrc) {
     RTC_LOG(LS_INFO) << "Ignoring call to SetLocalSsrc because parameters are "
                         "unchanged; local_ssrc="
                      << local_ssrc;