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

Unified Diff: content/browser/renderer_host/media/video_capture_controller.cc

Issue 10391065: handle the case when device is closed before media pipeline is fully initialized. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: code review Created 8 years, 7 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: content/browser/renderer_host/media/video_capture_controller.cc
===================================================================
--- content/browser/renderer_host/media/video_capture_controller.cc (revision 138673)
+++ content/browser/renderer_host/media/video_capture_controller.cc (working copy)
@@ -215,8 +215,10 @@
if (!client)
client = FindClient(session_id, controller_clients_);
- if (client)
+ if (client) {
client->session_closed = true;
+ client->event_handler->OnPaused(client->controller_id);
+ }
}
void VideoCaptureController::ReturnBuffer(

Powered by Google App Engine
This is Rietveld 408576698