From 6eb0f6a4d9937034ee600a35c62eb4cffc897357 Mon Sep 17 00:00:00 2001 From: "mikhal@webrtc.org" Date: Mon, 3 Jun 2013 22:54:40 +0000 Subject: [PATCH] Setting SSRC in vie_loopback_test BUG=1822 R=pwestin@webrtc.org, wu@webrtc.org Review URL: https://webrtc-codereview.appspot.com/1603004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4159 4adac7df-926f-26a2-2b94-8c16560cd09d --- .../test/auto_test/source/vie_autotest_loopback.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/webrtc/video_engine/test/auto_test/source/vie_autotest_loopback.cc b/webrtc/video_engine/test/auto_test/source/vie_autotest_loopback.cc index 1ebfc3ba1..00b50d1cb 100644 --- a/webrtc/video_engine/test/auto_test/source/vie_autotest_loopback.cc +++ b/webrtc/video_engine/test/auto_test/source/vie_autotest_loopback.cc @@ -217,6 +217,15 @@ int VideoEngineSampleCode(void* window1, void* window2) return -1; } + // Setting SSRC manually (arbitrary value), as otherwise we will get a clash + // (loopback), and a new SSRC will be set, which will reset the receiver. + error = ptrViERtpRtcp->SetLocalSSRC(videoChannel, 0x01234567); + if (error == -1) + { + printf("ERROR in ViERTP_RTCP::SetLocalSSRC\n"); + return -1; + } + // // Set up rendering //