Index: Source/modules/mediasource/HTMLVideoElementMediaSource.cpp |
diff --git a/Source/modules/mediasource/HTMLVideoElementMediaSource.cpp b/Source/modules/mediasource/HTMLVideoElementMediaSource.cpp |
index 8d3c75d8181015bf7db27df8248bde7162e20531..3300bdb2064c11f320384619418d8af2fbb78aa7 100644 |
--- a/Source/modules/mediasource/HTMLVideoElementMediaSource.cpp |
+++ b/Source/modules/mediasource/HTMLVideoElementMediaSource.cpp |
@@ -45,11 +45,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(); |
+ blink::WebMediaPlayer* webMediaPlayer = videoElement.webMediaPlayer(); |
+ if (webMediaPlayer) { |
+ total = webMediaPlayer->decodedFrameCount(); |
+ dropped = webMediaPlayer->droppedFrameCount(); |
+ corrupted = webMediaPlayer->corruptedFrameCount(); |
} |
return VideoPlaybackQuality::create(videoElement.document(), total, dropped, corrupted); |