| Index: media/base/video_frame_metadata.cc
|
| diff --git a/media/base/video_frame_metadata.cc b/media/base/video_frame_metadata.cc
|
| index 292274e5add1a746fd1953507c2d85ded05b2dd9..5b65cd2f24fdad536db4d8cf143e93be3fcbf7cb 100644
|
| --- a/media/base/video_frame_metadata.cc
|
| +++ b/media/base/video_frame_metadata.cc
|
| @@ -111,7 +111,8 @@ bool VideoFrameMetadata::GetString(Key key, std::string* value) const {
|
| DCHECK(value);
|
| const base::Value* const binary_value = GetBinaryValue(key);
|
| if (binary_value)
|
| - value->assign(binary_value->GetBuffer(), binary_value->GetSize());
|
| + value->assign(binary_value->GetBlob().data(),
|
| + binary_value->GetBlob().size());
|
| return !!binary_value;
|
| }
|
|
|
| @@ -120,9 +121,10 @@ template <class TimeType>
|
| bool ToTimeValue(const base::Value& binary_value, TimeType* value) {
|
| DCHECK(value);
|
| int64_t internal_value;
|
| - if (binary_value.GetSize() != sizeof(internal_value))
|
| + if (binary_value.GetBlob().size() != sizeof(internal_value))
|
| return false;
|
| - memcpy(&internal_value, binary_value.GetBuffer(), sizeof(internal_value));
|
| + memcpy(&internal_value, binary_value.GetBlob().data(),
|
| + sizeof(internal_value));
|
| *value = TimeType::FromInternalValue(internal_value);
|
| return true;
|
| }
|
|
|