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

Unified Diff: remoting/webapp/client_plugin.js

Issue 329663002: Fix MediaSource renderer to limit memory consumption. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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: remoting/webapp/client_plugin.js
diff --git a/remoting/webapp/client_plugin.js b/remoting/webapp/client_plugin.js
index 7319e6b4f30fee7484337bb5d165e3e0b521c34c..9b04aec9c0952cecd303b4673d3d22c8f9740f04 100644
--- a/remoting/webapp/client_plugin.js
+++ b/remoting/webapp/client_plugin.js
@@ -327,8 +327,10 @@ remoting.ClientPlugin.prototype.handleMessageMethod_ = function(message) {
console.error('Unexpected mediaSourceData.');
return;
}
+ // keyframe flag may be absent from the message.
+ var keyframe = !!message.data['keyframe'];
Jamie 2014/06/11 21:41:42 Does this pass jscompile? I'm surprised you don't
Sergey Ulanov 2014/06/11 23:41:12 Yes it does.
this.mediaSourceRenderer_.onIncomingData(
- (/** @type {ArrayBuffer} */ message.data['buffer']));
+ (/** @type {ArrayBuffer} */ message.data['buffer']), keyframe);
}
};

Powered by Google App Engine
This is Rietveld 408576698