Commit b8a125c7 authored by Niels Möller's avatar Niels Möller Committed by Commit Bot

Avoid constraint version of PeerConnection method CreateAnswer

Bug: webrtc:9239
Change-Id: I796ec3f6b332233c20050e58fc1dd97730dcbbe7
Reviewed-on: https://chromium-review.googlesource.com/1113453Reviewed-by: default avatarLambros Lambrou <lambroslambrou@chromium.org>
Commit-Queue: Niels Möller <nisse@chromium.org>
Cr-Commit-Position: refs/heads/master@{#570343}
parent 280c895a
...@@ -559,11 +559,12 @@ void WebrtcTransport::OnRemoteDescriptionSet(bool send_answer, ...@@ -559,11 +559,12 @@ void WebrtcTransport::OnRemoteDescriptionSet(bool send_answer,
// Create and send answer on the server. // Create and send answer on the server.
if (send_answer) { if (send_answer) {
const webrtc::PeerConnectionInterface::RTCOfferAnswerOptions options;
peer_connection()->CreateAnswer( peer_connection()->CreateAnswer(
CreateSessionDescriptionObserver::Create( CreateSessionDescriptionObserver::Create(
base::Bind(&WebrtcTransport::OnLocalSessionDescriptionCreated, base::Bind(&WebrtcTransport::OnLocalSessionDescriptionCreated,
weak_factory_.GetWeakPtr())), weak_factory_.GetWeakPtr())),
nullptr); options);
} }
AddPendingCandidatesIfPossible(); AddPendingCandidatesIfPossible();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment