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

Unified Diff: content/renderer/media/local_media_stream_audio_source.cc

Issue 2416123002: Stop media stream source when audio capture error occurs. (Closed)
Patch Set: Rebase. Created 4 years, 2 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: content/renderer/media/local_media_stream_audio_source.cc
diff --git a/content/renderer/media/local_media_stream_audio_source.cc b/content/renderer/media/local_media_stream_audio_source.cc
index f2075b97723c950424a5c49de547843d276ac3c5..03353f16b3c3d25e7bb1e2ce5430e46d9140158c 100644
--- a/content/renderer/media/local_media_stream_audio_source.cc
+++ b/content/renderer/media/local_media_stream_audio_source.cc
@@ -99,10 +99,7 @@ void LocalMediaStreamAudioSource::Capture(const media::AudioBus* audio_bus,
}
void LocalMediaStreamAudioSource::OnCaptureError(const std::string& why) {
- // As of this writing, this method doesn't get called for anything useful,
- // and all other implementors just log the message, but don't disconnect sinks
- // or take any other action. So, just log the error.
- LOG(ERROR) << why;
+ StopSourceOnError(why);
}
} // namespace content
« no previous file with comments | « content/renderer/media/external_media_stream_audio_source.cc ('k') | content/renderer/media/media_stream_audio_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698