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

Unified Diff: chrome/renderer/media/cast_receiver_session_delegate.cc

Issue 2623443002: Fix getUserMedia so that failure is reported for invalid audio sources. (Closed)
Patch Set: Address comments Created 3 years, 11 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
Index: chrome/renderer/media/cast_receiver_session_delegate.cc
diff --git a/chrome/renderer/media/cast_receiver_session_delegate.cc b/chrome/renderer/media/cast_receiver_session_delegate.cc
index 790ed1742996ec10b93b3982b2fcfc8088e23579..2cfd6f82135ddd7f17120111fde121abb6f9e266 100644
--- a/chrome/renderer/media/cast_receiver_session_delegate.cc
+++ b/chrome/renderer/media/cast_receiver_session_delegate.cc
@@ -48,7 +48,8 @@ void CastReceiverSessionDelegate::ReceivePacket(
void CastReceiverSessionDelegate::StartAudio(
scoped_refptr<CastReceiverAudioValve> audio_valve) {
DCHECK(io_task_runner_->BelongsToCurrentThread());
- audio_valve_ = audio_valve;
+ audio_valve_ = std::move(audio_valve);
+ audio_valve_->OnStarted();
cast_receiver_->RequestDecodedAudioFrame(on_audio_decoded_cb_);
}
« no previous file with comments | « chrome/renderer/media/cast_receiver_audio_valve.cc ('k') | content/renderer/media/external_media_stream_audio_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698