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

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

Issue 229503002: Cast: Make castv2 mirroring performance test run again (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed Created 6 years, 8 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/cast_environment.h » ('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 e1e91cb9aacf4daab14d2e8864a6d7c2c9c93053..5cb080205a24775125d5767a27939e4224ee2f8a 100644
--- a/media/cast/audio_receiver/audio_receiver.cc
+++ b/media/cast/audio_receiver/audio_receiver.cc
@@ -59,16 +59,6 @@ AudioReceiver::AudioReceiver(scoped_refptr<CastEnvironment> cast_environment,
AudioReceiver::~AudioReceiver() {
DCHECK(cast_environment_->CurrentlyOn(CastEnvironment::MAIN));
-
- // If any callbacks for encoded audio frames are queued, flush them out now.
- // This is critical because some Closures in |frame_request_queue_| may have
- // Unretained references to |this|.
- while (!frame_request_queue_.empty()) {
- frame_request_queue_.front().Run(
- make_scoped_ptr<transport::EncodedAudioFrame>(NULL), base::TimeTicks());
- frame_request_queue_.pop_front();
- }
-
cast_environment_->Logging()->RemoveRawEventSubscriber(&event_subscriber_);
}
« no previous file with comments | « media/cast/audio_receiver/audio_receiver.h ('k') | media/cast/cast_environment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698