| Index: media/blink/websourcebuffer_impl.cc
|
| diff --git a/media/blink/websourcebuffer_impl.cc b/media/blink/websourcebuffer_impl.cc
|
| index d60a19f7d9133ecd0fa845d60bf335fce4f80a55..78e9290af999994d5171c6fe9b021f536395dfbe 100644
|
| --- a/media/blink/websourcebuffer_impl.cc
|
| +++ b/media/blink/websourcebuffer_impl.cc
|
| @@ -99,13 +99,12 @@ bool WebSourceBufferImpl::evictCodedFrames(double currentPlaybackTime,
|
| newDataSize);
|
| }
|
|
|
| -void WebSourceBufferImpl::append(
|
| - const unsigned char* data,
|
| - unsigned length,
|
| - double* timestamp_offset) {
|
| +bool WebSourceBufferImpl::append(const unsigned char* data,
|
| + unsigned length,
|
| + double* timestamp_offset) {
|
| base::TimeDelta old_offset = timestamp_offset_;
|
| - demuxer_->AppendData(id_, data, length, append_window_start_,
|
| - append_window_end_, ×tamp_offset_);
|
| + bool success = demuxer_->AppendData(id_, data, length, append_window_start_,
|
| + append_window_end_, ×tamp_offset_);
|
|
|
| // Coded frame processing may update the timestamp offset. If the caller
|
| // provides a non-NULL |timestamp_offset| and frame processing changes the
|
| @@ -114,6 +113,8 @@ void WebSourceBufferImpl::append(
|
| // more than microsecond precision.
|
| if (timestamp_offset && old_offset != timestamp_offset_)
|
| *timestamp_offset = timestamp_offset_.InSecondsF();
|
| +
|
| + return success;
|
| }
|
|
|
| void WebSourceBufferImpl::resetParserState() {
|
|
|