Index: Source/core/html/shadow/MediaControls.cpp |
diff --git a/Source/core/html/shadow/MediaControls.cpp b/Source/core/html/shadow/MediaControls.cpp |
index 2af3e93524f5377ae83bfa9e3f968527fd9c6192..61bd5b93da35a3769c32d0da0cbab7ff350ac56d 100644 |
--- a/Source/core/html/shadow/MediaControls.cpp |
+++ b/Source/core/html/shadow/MediaControls.cpp |
@@ -303,7 +303,7 @@ void MediaControls::changedClosedCaptionsVisibility() |
void MediaControls::refreshClosedCaptionsButtonVisibility() |
{ |
- if (mediaControllerInterface().hasClosedCaptions()) |
+ if (mediaElement().hasClosedCaptions()) |
m_toggleClosedCaptionsButton->show(); |
else |
m_toggleClosedCaptionsButton->hide(); |