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

Unified Diff: remoting/protocol/audio_reader.cc

Issue 10532211: Added piping for sending audio packets from host to client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed unittests Created 8 years, 6 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/client/chromoting_client.cc ('k') | remoting/protocol/audio_writer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/audio_reader.cc
diff --git a/remoting/protocol/audio_reader.cc b/remoting/protocol/audio_reader.cc
index 6a607bd11eaf05db32752874008972705a230e8f..4269176f1db9baa0a83dcd598928abe7cf197995 100644
--- a/remoting/protocol/audio_reader.cc
+++ b/remoting/protocol/audio_reader.cc
@@ -26,6 +26,8 @@ AudioReader::~AudioReader() {
// static
scoped_ptr<AudioReader> AudioReader::Create(const SessionConfig& config) {
+ if (!config.is_audio_enabled())
+ return scoped_ptr<AudioReader>(NULL);
// TODO(kxing): Support different session configurations.
return scoped_ptr<AudioReader>(new AudioReader(AudioPacket::ENCODING_RAW));
}
« no previous file with comments | « remoting/client/chromoting_client.cc ('k') | remoting/protocol/audio_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698