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

Unified Diff: chrome/renderer/extensions/cast_streaming_native_handler.cc

Issue 973753002: Remove Width and Height of The Video Content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | « chrome/common/extensions/api/cast_streaming_rtp_stream.idl ('k') | chrome/renderer/media/cast_rtp_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/extensions/cast_streaming_native_handler.cc
diff --git a/chrome/renderer/extensions/cast_streaming_native_handler.cc b/chrome/renderer/extensions/cast_streaming_native_handler.cc
index c38dd7388eca585d4389aafc28aa7591339b5dcf..da471dfc696c6d3f0f498d120556f08c92bea802 100644
--- a/chrome/renderer/extensions/cast_streaming_native_handler.cc
+++ b/chrome/renderer/extensions/cast_streaming_native_handler.cc
@@ -98,8 +98,6 @@ bool ToCastRtpPayloadParamsOrThrow(v8::Isolate* isolate,
cast_params->channels = ext_params.channels ? *ext_params.channels : 0;
cast_params->max_frame_rate =
ext_params.max_frame_rate ? *ext_params.max_frame_rate : 0.0;
- cast_params->width = ext_params.width ? *ext_params.width : 0;
- cast_params->height = ext_params.height ? *ext_params.height : 0;
if (ext_params.aes_key &&
!HexDecode(*ext_params.aes_key, &cast_params->aes_key)) {
isolate->ThrowException(v8::Exception::Error(
@@ -139,10 +137,6 @@ void FromCastRtpPayloadParams(const CastRtpPayloadParams& cast_params,
ext_params->channels.reset(new int(cast_params.channels));
if (cast_params.max_frame_rate > 0.0)
ext_params->max_frame_rate.reset(new double(cast_params.max_frame_rate));
- if (cast_params.width)
- ext_params->width.reset(new int(cast_params.width));
- if (cast_params.height)
- ext_params->height.reset(new int(cast_params.height));
for (size_t i = 0; i < cast_params.codec_specific_params.size(); ++i) {
linked_ptr<CodecSpecificParams> ext_codec_params(
new CodecSpecificParams());
« no previous file with comments | « chrome/common/extensions/api/cast_streaming_rtp_stream.idl ('k') | chrome/renderer/media/cast_rtp_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698