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

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

Issue 1834323002: MediaStream audio: Refactor 3 separate "glue" implementations into one. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE + Workaround to ensure MediaStreamAudioProcessor is destroyed on the main thread. Created 4 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
Index: content/renderer/media/media_stream_audio_processor.cc
diff --git a/content/renderer/media/media_stream_audio_processor.cc b/content/renderer/media/media_stream_audio_processor.cc
index b733857442a51d66f6f52f6326f9d7ca360d6cca..68aefcbff88663ebfba25ccac372b0aa999c0f54 100644
--- a/content/renderer/media/media_stream_audio_processor.cc
+++ b/content/renderer/media/media_stream_audio_processor.cc
@@ -302,6 +302,9 @@ MediaStreamAudioProcessor::MediaStreamAudioProcessor(
}
MediaStreamAudioProcessor::~MediaStreamAudioProcessor() {
+ // TODO(miu): This class is ref-counted, shared among threads, and then
+ // requires itself to be destroyed on the main thread only?!?!? Fix this, and
+ // then remove the hack in WebRtcAudioSink::Adapter.
DCHECK(main_thread_checker_.CalledOnValidThread());
Stop();
}
« no previous file with comments | « content/renderer/media/media_stream_audio_deliverer.h ('k') | content/renderer/media/media_stream_audio_processor_options.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698