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

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

Issue 2888383002: Stop source and fire MediaStreamTrack ended event if missing audio input callbacks are detected. (Closed)
Patch Set: Removed dependency on test CL. Created 3 years, 7 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 | « no previous file | media/audio/audio_input_device.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5e56aa357dd37e2e4d7c445ee58a23ad5451d482..522d82419dbe68250e74e3ed302f057dfd8ad813 100644
--- a/content/renderer/media/local_media_stream_audio_source.cc
+++ b/content/renderer/media/local_media_stream_audio_source.cc
@@ -6,6 +6,7 @@
#include "content/common/media/media_stream_options.h"
#include "content/renderer/media/audio_device_factory.h"
+#include "content/renderer/media/webrtc_logging.h"
#include "content/renderer/render_frame_impl.h"
namespace content {
@@ -105,6 +106,7 @@ void LocalMediaStreamAudioSource::Capture(const media::AudioBus* audio_bus,
}
void LocalMediaStreamAudioSource::OnCaptureError(const std::string& why) {
+ WebRtcLogMessage("LocalMediaStreamAudioSource::OnCaptureError: " + why);
StopSourceOnError(why);
}
« no previous file with comments | « no previous file | media/audio/audio_input_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698