Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(658)

Unified Diff: remoting/protocol/webrtc_transport.cc

Issue 2710483002: Actually pass the stereo=1 parameter to WebRTC for receiving audio (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/protocol/connection_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/webrtc_transport.cc
diff --git a/remoting/protocol/webrtc_transport.cc b/remoting/protocol/webrtc_transport.cc
index c9c88c4e5a4716067ddbc4cc91bdbdc07e46c639..94cdc822484a0c20166ced623e0ddb963fbfc558 100644
--- a/remoting/protocol/webrtc_transport.cc
+++ b/remoting/protocol/webrtc_transport.cc
@@ -472,6 +472,17 @@ void WebrtcTransport::OnLocalSessionDescriptionCreated(
SdpMessage sdp_message(description_sdp);
UpdateCodecParameters(&sdp_message, /*incoming=*/false);
description_sdp = sdp_message.ToString();
+ {
Sergey Ulanov 2017/02/21 18:47:03 remove these braces, I don't think they add anythi
+ webrtc::SdpParseError err;
Sergey Ulanov 2017/02/21 18:47:03 s/err/error/
kwiberg-chromium 2017/02/21 21:32:41 There's already a function argument called error--
Sergey Ulanov 2017/02/21 21:49:27 Maybe call it parse_error? If you keep the braces
kwiberg-chromium 2017/02/21 21:56:54 Yes. We *need* to have the braces *or* a variable
Sergey Ulanov 2017/02/21 22:31:52 Sorry I didn't pay full attention to what you wrot
kwiberg-chromium 2017/02/21 23:03:31 I'll go with your preference since this is your co
+ description.reset(webrtc::CreateSessionDescription(description->type(),
+ description_sdp, &err));
+ if (!description) {
+ LOG(ERROR) << "Failed to parse the session description: "
+ << err.description << " line: " << err.line;
+ Close(CHANNEL_CONNECTION_ERROR);
+ return;
+ }
+ }
// Format and send the session description to the peer.
std::unique_ptr<XmlElement> transport_info(
« no previous file with comments | « remoting/protocol/connection_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698