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

Unified Diff: media/cast/video_receiver/video_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/video_receiver/video_receiver.h ('k') | media/cast/video_sender/video_sender.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/video_receiver/video_receiver.cc
diff --git a/media/cast/video_receiver/video_receiver.cc b/media/cast/video_receiver/video_receiver.cc
index 862733b7622a4d20269ce3c3d2ab417264b522e7..10ca3fc6734b7e8a1f8103f175f16e3a64f01868 100644
--- a/media/cast/video_receiver/video_receiver.cc
+++ b/media/cast/video_receiver/video_receiver.cc
@@ -70,16 +70,6 @@ VideoReceiver::VideoReceiver(scoped_refptr<CastEnvironment> cast_environment,
VideoReceiver::~VideoReceiver() {
DCHECK(cast_environment_->CurrentlyOn(CastEnvironment::MAIN));
-
- // If any callbacks for encoded video 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::EncodedVideoFrame>(NULL), base::TimeTicks());
- frame_request_queue_.pop_front();
- }
-
cast_environment_->Logging()->RemoveRawEventSubscriber(&event_subscriber_);
}
« no previous file with comments | « media/cast/video_receiver/video_receiver.h ('k') | media/cast/video_sender/video_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698