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

Unified Diff: media/cast/audio_receiver/audio_receiver.cc

Issue 109413004: Cast:Adding cast_transport_config and cleaning up (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 6 years, 11 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 | « media/cast/audio_receiver/audio_receiver.h ('k') | media/cast/audio_receiver/audio_receiver_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/audio_receiver/audio_receiver.cc
diff --git a/media/cast/audio_receiver/audio_receiver.cc b/media/cast/audio_receiver/audio_receiver.cc
index c4eaaa7716dee6f13c0cb3edf95d075f60f8646b..bb9749801fb27c1a3dd21fe944ffca9f04f699ee 100644
--- a/media/cast/audio_receiver/audio_receiver.cc
+++ b/media/cast/audio_receiver/audio_receiver.cc
@@ -291,7 +291,8 @@ void AudioReceiver::PlayoutTimeout() {
}
uint32 rtp_timestamp = 0;
bool next_frame = false;
- scoped_ptr<EncodedAudioFrame> encoded_frame(new EncodedAudioFrame());
+ scoped_ptr<transport::EncodedAudioFrame> encoded_frame(
+ new transport::EncodedAudioFrame());
if (!audio_buffer_->GetEncodedAudioFrame(encoded_frame.get(),
&rtp_timestamp, &next_frame)) {
@@ -322,7 +323,8 @@ void AudioReceiver::GetEncodedAudioFrame(
uint32 rtp_timestamp = 0;
bool next_frame = false;
- scoped_ptr<EncodedAudioFrame> encoded_frame(new EncodedAudioFrame());
+ scoped_ptr<transport::EncodedAudioFrame> encoded_frame(
+ new transport::EncodedAudioFrame());
if (!audio_buffer_->GetEncodedAudioFrame(encoded_frame.get(),
&rtp_timestamp, &next_frame)) {
@@ -348,7 +350,7 @@ bool AudioReceiver::PostEncodedAudioFrame(
const AudioFrameEncodedCallback& callback,
uint32 rtp_timestamp,
bool next_frame,
- scoped_ptr<EncodedAudioFrame>* encoded_frame) {
+ scoped_ptr<transport::EncodedAudioFrame>* encoded_frame) {
DCHECK(cast_environment_->CurrentlyOn(CastEnvironment::MAIN));
DCHECK(audio_buffer_) << "Invalid function call in this configuration";
@@ -432,7 +434,7 @@ base::TimeTicks AudioReceiver::GetPlayoutTime(base::TimeTicks now,
}
bool AudioReceiver::DecryptAudioFrame(
- scoped_ptr<EncodedAudioFrame>* audio_frame) {
+ scoped_ptr<transport::EncodedAudioFrame>* audio_frame) {
DCHECK(decryptor_) << "Invalid state";
if (!decryptor_->SetCounter(GetAesNonce((*audio_frame)->frame_id,
« no previous file with comments | « media/cast/audio_receiver/audio_receiver.h ('k') | media/cast/audio_receiver/audio_receiver_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698