Commit 848f79e
[GStreamer] Don't advertise support for HDR on systems that don't explicitly declare that support
https://bugs.webkit.org/show_bug.cgi?id=299873
Reviewed by Philippe Normand.
Some websites and JS players can try to play HDR video on systems that
don't support it. Even when there isn't an effective HDR connected
screen detection mechanism yet in place on GStreamer ports, it would be
nice to at least report HDR as unsupported to those webpages asking for
it.
See: #1564
This patch now filters the MediaCapabilities query, so if the webpage
is asking for an hdrMetadataType or a transferFunction and our
internal screen data doesn't acknowledge the presence of an HDR screen,
we reply that such MediaCapabilities combination is not supported.
Also, if the requested codecs aren't supported (even by software),
we now return that the MediaCapabilities combination is not supported.
Original author: Andrzej Surdej <[email protected]>
* Source/WebCore/platform/graphics/gstreamer/GStreamerRegistryScanner.cpp:
(WebCore::GStreamerRegistryScanner::isConfigurationSupported const): Apply filters. Check if codecs are supported.
Canonical link: https://commits.webkit.org/301049@main1 parent 2ad411d commit 848f79e
File tree
1 file changed
+26
-5
lines changed- Source/WebCore/platform/graphics/gstreamer
1 file changed
+26
-5
lines changedLines changed: 26 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
1005 | 1007 | | |
1006 | 1008 | | |
1007 | 1009 | | |
1008 | | - | |
1009 | 1010 | | |
1010 | 1011 | | |
1011 | 1012 | | |
| |||
1020 | 1021 | | |
1021 | 1022 | | |
1022 | 1023 | | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
1023 | 1038 | | |
1024 | | - | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
1025 | 1042 | | |
1026 | | - | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
1027 | 1046 | | |
| 1047 | + | |
1028 | 1048 | | |
1029 | 1049 | | |
1030 | 1050 | | |
| |||
1035 | 1055 | | |
1036 | 1056 | | |
1037 | 1057 | | |
1038 | | - | |
| 1058 | + | |
| 1059 | + | |
1039 | 1060 | | |
1040 | 1061 | | |
1041 | | - | |
| 1062 | + | |
1042 | 1063 | | |
1043 | 1064 | | |
1044 | 1065 | | |
| |||
0 commit comments