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

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: rebase 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 137680)
+++ 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);
Ronghua Wu (Left Chromium) 2012/05/17 22:54:37 Should we call this be called OnStop?
wjia(left Chromium) 2012/05/23 18:46:48 |Stop| has been used StopCapture. |Pause| is used
+ }
}
void VideoCaptureController::ReturnBuffer(

Powered by Google App Engine
This is Rietveld 408576698