summaryrefslogtreecommitdiffstats
path: root/media/cast/audio_receiver/audio_receiver.cc
diff options
context:
space:
mode:
authorhubbe@chromium.org <hubbe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-09 23:45:38 +0000
committerhubbe@chromium.org <hubbe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-09 23:45:38 +0000
commitaaeb7d61dd5b45a8e516f2825c793440eca44014 (patch)
treebd6fd4ca23152488b9db628461ec07167759dca9 /media/cast/audio_receiver/audio_receiver.cc
parentd5dd32567ca6acbd93b02caadac21fb2e67738a0 (diff)
downloadchromium_src-aaeb7d61dd5b45a8e516f2825c793440eca44014.zip
chromium_src-aaeb7d61dd5b45a8e516f2825c793440eca44014.tar.gz
chromium_src-aaeb7d61dd5b45a8e516f2825c793440eca44014.tar.bz2
Cast: Make castv2 mirroring performance test run again
Note that this CL doesn't actually make the tests *pass*, but now they report actual problems in the cast library rather than just fail immediately. Making the tests pass will be a problem for the next CL. Also, add tests for what happens when the sender/receiver clocks are off. Review URL: https://codereview.chromium.org/229503002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262860 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/cast/audio_receiver/audio_receiver.cc')
-rw-r--r--media/cast/audio_receiver/audio_receiver.cc10
1 files changed, 0 insertions, 10 deletions
diff --git a/media/cast/audio_receiver/audio_receiver.cc b/media/cast/audio_receiver/audio_receiver.cc
index e1e91cb..5cb0802 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_);
}