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

Unified Diff: remoting/host/audio_capturer_linux.cc

Issue 866863004: Replace AudioScheduler with AudioPump. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mouse_cursor_pipe
Patch Set: Created 5 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
« no previous file with comments | « remoting/host/audio_capturer_linux.h ('k') | remoting/host/audio_capturer_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/audio_capturer_linux.cc
diff --git a/remoting/host/audio_capturer_linux.cc b/remoting/host/audio_capturer_linux.cc
index a34293a57e3d3a8f45c17494ade2bd5db6d7f9a0..8980a8dbe4b5b6160d5476569b978664130ba17c 100644
--- a/remoting/host/audio_capturer_linux.cc
+++ b/remoting/host/audio_capturer_linux.cc
@@ -37,6 +37,7 @@ AudioCapturerLinux::AudioCapturerLinux(
}
AudioCapturerLinux::~AudioCapturerLinux() {
+ pipe_reader_->RemoveObserver(this);
}
bool AudioCapturerLinux::Start(const PacketCapturedCallback& callback) {
@@ -47,15 +48,6 @@ bool AudioCapturerLinux::Start(const PacketCapturedCallback& callback) {
return true;
}
-void AudioCapturerLinux::Stop() {
- pipe_reader_->RemoveObserver(this);
- callback_.Reset();
-}
-
-bool AudioCapturerLinux::IsStarted() {
- return !callback_.is_null();
-}
-
void AudioCapturerLinux::OnDataRead(
scoped_refptr<base::RefCountedString> data) {
DCHECK(!callback_.is_null());
« no previous file with comments | « remoting/host/audio_capturer_linux.h ('k') | remoting/host/audio_capturer_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698