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

Unified Diff: content/renderer/media/webrtc_audio_device_impl.h

Issue 178153007: Avoid hitting the thread check when WebRtcAudioRenderer is going away. (Closed) Base URL: http://git.chromium.org/chromium/src.git@libjingle_get_stats
Patch Set: Created 6 years, 10 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/webrtc_audio_device_impl.h
diff --git a/content/renderer/media/webrtc_audio_device_impl.h b/content/renderer/media/webrtc_audio_device_impl.h
index 7354002dcaa6c79129ecf24e5517b2917bc9e14a..b885d0d9fcfb30cc21d6dcb195168e46081f4d79 100644
--- a/content/renderer/media/webrtc_audio_device_impl.h
+++ b/content/renderer/media/webrtc_audio_device_impl.h
@@ -242,6 +242,10 @@ class WebRtcPlayoutDataSource {
virtual void OnPlayoutData(media::AudioBus* audio_bus,
int sample_rate,
int audio_delay_milliseconds) = 0;
+
+ // Callback to notify the sink that the source has changed.
+ virtual void OnPlayoutDataSourceChanged() = 0;
tommi (sloooow) - chröme 2014/03/04 20:48:39 also document thread semantics
no longer working on chromium 2014/03/05 13:01:04 Done.
+
protected:
virtual ~Sink() {}
};

Powered by Google App Engine
This is Rietveld 408576698