diff --git a/webrtc/voice_engine/test/cmd_test/voe_cmd_test.cc b/webrtc/voice_engine/test/cmd_test/voe_cmd_test.cc index bf1678154..400f73b9c 100644 --- a/webrtc/voice_engine/test/cmd_test/voe_cmd_test.cc +++ b/webrtc/voice_engine/test/cmd_test/voe_cmd_test.cc @@ -270,6 +270,9 @@ void RunTest(std::string out_path) { fflush(NULL); } + scoped_ptr voice_channel_transport( + new VoiceChannelTransport(netw, chan)); + char ip[64]; printf("1. 127.0.0.1 \n"); printf("2. Specify IP \n"); @@ -290,9 +293,6 @@ void RunTest(std::string out_path) { rPort = 1234; printf("Set Send port \n"); - scoped_ptr voice_channel_transport( - new VoiceChannelTransport(netw, chan)); - printf("Set Send IP \n"); res = voice_channel_transport->SetSendDestination(ip, rPort); VALIDATE;