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

Unified Diff: chrome/renderer/media/cast_receiver_session_delegate.cc

Issue 1714593003: Introduce media::AudioPushFifo and a couple of use cases (and clean-ups). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Win compile issue. Created 4 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: chrome/renderer/media/cast_receiver_session_delegate.cc
diff --git a/chrome/renderer/media/cast_receiver_session_delegate.cc b/chrome/renderer/media/cast_receiver_session_delegate.cc
index fee59ec18b18294d40150b2282c264df90213b1c..cea79a63aac4b3fc8742fd703609fccb4660341e 100644
--- a/chrome/renderer/media/cast_receiver_session_delegate.cc
+++ b/chrome/renderer/media/cast_receiver_session_delegate.cc
@@ -63,16 +63,10 @@ void CastReceiverSessionDelegate::OnDecodedAudioFrame(
// operations. Since we don't know what the Capture callback
// will do exactly, we need to jump to a different thread.
// Let's re-use the audio decoder thread.
- base::TimeTicks now = cast_environment_->Clock()->NowTicks();
cast_environment_->PostTask(
- media::cast::CastEnvironment::AUDIO,
- FROM_HERE,
- base::Bind(&CastReceiverAudioValve::Capture,
- audio_valve_,
- base::Owned(audio_bus.release()),
- (playout_time - now).InMilliseconds(),
- 1.0,
- false));
+ media::cast::CastEnvironment::AUDIO, FROM_HERE,
+ base::Bind(&CastReceiverAudioValve::DeliverDecodedAudio, audio_valve_,
+ base::Owned(audio_bus.release()), playout_time));
cast_receiver_->RequestDecodedAudioFrame(on_audio_decoded_cb_);
}

Powered by Google App Engine
This is Rietveld 408576698