Skip to content

Commit e330d35

Browse files
dpinoeocanha
authored andcommitted
[WPE] Unreviewed, fix build for 'WPE_PLATFORM=disabled'
https://bugs.webkit.org/show_bug.cgi?id=299873 Changeset 301049@main added a block of code that uses the functions 'screenData' and 'primaryScreenDisplayID'. These functions are only defined when 'WPE_PLATFORM' is enabled. * Source/WebCore/platform/graphics/gstreamer/GStreamerRegistryScanner.cpp: (WebCore::GStreamerRegistryScanner::isConfigurationSupported const): Canonical link: https://commits.webkit.org/301141@main
1 parent 848f79e commit e330d35

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Source/WebCore/platform/graphics/gstreamer/GStreamerRegistryScanner.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,6 +1021,7 @@ GStreamerRegistryScanner::RegistryLookupResult GStreamerRegistryScanner::isConfi
10211021
videoConfiguration.bitrate, videoConfiguration.framerate);
10221022
#endif
10231023

1024+
#if ENABLE(WPE_PLATFORM)
10241025
auto* scrData = screenData(primaryScreenDisplayID());
10251026
if (!scrData || !scrData->screenSupportsHighDynamicRange) {
10261027
// Check HDR metadata field
@@ -1034,6 +1035,7 @@ GStreamerRegistryScanner::RegistryLookupResult GStreamerRegistryScanner::isConfi
10341035
return { false, false, nullptr };
10351036
}
10361037
}
1038+
#endif
10371039

10381040
auto contentType = ContentType(videoConfiguration.contentType);
10391041
if (!isContainerTypeSupported(configuration, contentType.containerType()))

0 commit comments

Comments
 (0)