summaryrefslogtreecommitdiff
path: root/Source/WebCore/platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp')
-rw-r--r--Source/WebCore/platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/WebCore/platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp b/Source/WebCore/platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp
index 8c898c17b..b6bdf60ca 100644
--- a/Source/WebCore/platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp
+++ b/Source/WebCore/platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp
@@ -695,7 +695,7 @@ void MediaPlayerPrivateMediaFoundation::createVideoWindow()
PlatformPageClient pageClient = view->hostWindow()->platformPageClient();
#if PLATFORM(QT)
- QWindow* ownerWindow = pageClient->ownerWindow();
+ QWindow* ownerWindow = pageClient ? pageClient->ownerWindow() : nullptr;
if (!ownerWindow)
return;
hWndParent = (HWND)ownerWindow->winId();