Commit 655bca1
Cherry-pick 283974@main (4f4db5a). https://bugs.webkit.org/show_bug.cgi?id=279972
[GStreamer] Do not access a null GstStructure
https://bugs.webkit.org/show_bug.cgi?id=279972
Reviewed by Philippe Normand.
Stats can be null in some sinks so we avoid accessing them in that case. For the same prize we protect the access to
null structures in the GstStructure accessors.
* Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.cpp:
(WebCore::gstStructureGet):
(WebCore::gstStructureGetString):
(WebCore::gstStructureGetName):
* Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
(WebCore::MediaPlayerPrivateGStreamer::updateVideoSinkStatistics):
Canonical link: https://commits.webkit.org/283974@main
Canonical link: https://commits.webkit.org/282416.111@webkitglib/2.461 parent 3f11c27 commit 655bca1
File tree
2 files changed
+23
-0
lines changed- Source/WebCore/platform/graphics/gstreamer
2 files changed
+23
-0
lines changedLines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1019 | 1019 | | |
1020 | 1020 | | |
1021 | 1021 | | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
1022 | 1027 | | |
1023 | 1028 | | |
1024 | 1029 | | |
| |||
1063 | 1068 | | |
1064 | 1069 | | |
1065 | 1070 | | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
1066 | 1076 | | |
1067 | 1077 | | |
1068 | 1078 | | |
1069 | 1079 | | |
1070 | 1080 | | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
1071 | 1086 | | |
1072 | 1087 | | |
1073 | 1088 | | |
1074 | 1089 | | |
1075 | 1090 | | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
1076 | 1096 | | |
1077 | 1097 | | |
1078 | 1098 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4301 | 4301 | | |
4302 | 4302 | | |
4303 | 4303 | | |
| 4304 | + | |
| 4305 | + | |
| 4306 | + | |
4304 | 4307 | | |
4305 | 4308 | | |
4306 | 4309 | | |
| |||
0 commit comments