Chromium Code Reviews| Index: Source/modules/mediasource/HTMLVideoElementMediaSource.cpp |
| diff --git a/Source/modules/mediasource/HTMLVideoElementMediaSource.cpp b/Source/modules/mediasource/HTMLVideoElementMediaSource.cpp |
| index 8d3c75d8181015bf7db27df8248bde7162e20531..bef36dbf62a3620955d7f18fd2ba2a21a6e659c7 100644 |
| --- a/Source/modules/mediasource/HTMLVideoElementMediaSource.cpp |
| +++ b/Source/modules/mediasource/HTMLVideoElementMediaSource.cpp |
| @@ -36,6 +36,8 @@ |
| namespace WebCore { |
| +using blink::WebMediaPlayer; |
|
acolwell GONE FROM CHROMIUM
2014/05/20 16:40:21
nit: No need for using since there is only one ins
|
| + |
| HTMLVideoElementMediaSource::HTMLVideoElementMediaSource() { } |
| HTMLVideoElementMediaSource::~HTMLVideoElementMediaSource() { } |
| @@ -45,11 +47,11 @@ VideoPlaybackQuality* HTMLVideoElementMediaSource::getVideoPlaybackQuality(HTMLV |
| unsigned total = 0; |
| unsigned dropped = 0; |
| unsigned corrupted = 0; |
| - MediaPlayer* player = videoElement.player(); |
| - if (player) { |
| - total = player->decodedFrameCount(); |
| - dropped = player->droppedFrameCount(); |
| - corrupted = player->corruptedFrameCount(); |
| + WebMediaPlayer* webMediaPlayer = videoElement.webMediaPlayer(); |
| + if (webMediaPlayer) { |
| + total = webMediaPlayer->decodedFrameCount(); |
| + dropped = webMediaPlayer->droppedFrameCount(); |
| + corrupted = webMediaPlayer->corruptedFrameCount(); |
| } |
| return VideoPlaybackQuality::create(videoElement.document(), total, dropped, corrupted); |