diff options
Diffstat (limited to 'WebKit/win/FullscreenVideoController.cpp')
| -rw-r--r-- | WebKit/win/FullscreenVideoController.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/WebKit/win/FullscreenVideoController.cpp b/WebKit/win/FullscreenVideoController.cpp index 884f46a..6132fca 100644 --- a/WebKit/win/FullscreenVideoController.cpp +++ b/WebKit/win/FullscreenVideoController.cpp @@ -192,9 +192,16 @@ FullscreenVideoController::~FullscreenVideoController() movie()->exitFullscreen(); } -QTMovieWin* FullscreenVideoController::movie() const +QTMovieGWorld* FullscreenVideoController::movie() const { - return m_mediaElement ? reinterpret_cast<QTMovieWin*>(m_mediaElement->platformMedia().qtMovie) : 0; + if (!m_mediaElement) + return 0; + + PlatformMedia platformMedia = m_mediaElement->platformMedia(); + if (platformMedia.type != PlatformMedia::QTMovieGWorldType) + return 0; + + return platformMedia.media.qtMovieGWorld; } void FullscreenVideoController::setMediaElement(HTMLMediaElement* mediaElement) |
