| Index: media/blink/webmediaplayer_impl.cc
|
| diff --git a/media/blink/webmediaplayer_impl.cc b/media/blink/webmediaplayer_impl.cc
|
| index e7a48bb9f8431b88b567c584fab96181f8257f76..53ff33285333c4ac2bae13d0f638a135ca73f06e 100644
|
| --- a/media/blink/webmediaplayer_impl.cc
|
| +++ b/media/blink/webmediaplayer_impl.cc
|
| @@ -1301,13 +1301,11 @@ void WebMediaPlayerImpl::OnBufferingStateChange(BufferingState state) {
|
| // Buffering has underflowed.
|
| DCHECK_EQ(state, BUFFERING_HAVE_NOTHING);
|
|
|
| - // Report the number of times we've entered the underflow state. Only report
|
| - // for src= playback since for MSE it's out of our control. Ensure we only
|
| - // report the value when transitioning from HAVE_ENOUGH to HAVE_NOTHING.
|
| - if (data_source_ &&
|
| - ready_state_ == WebMediaPlayer::ReadyStateHaveEnoughData) {
|
| + // Report the number of times we've entered the underflow state. Ensure we
|
| + // only report the value when transitioning from HAVE_ENOUGH to
|
| + // HAVE_NOTHING.
|
| + if (ready_state_ == WebMediaPlayer::ReadyStateHaveEnoughData)
|
| underflow_timer_.reset(new base::ElapsedTimer());
|
| - }
|
|
|
| // It shouldn't be possible to underflow if we've not advanced past
|
| // HAVE_CURRENT_DATA.
|
|
|