Commit 3b3a227
committed
Avoid crashing when the video sink does not have stats
In the Sagemcom box without westeros, it crashes.
This was fixed upstream as commit that could not be backported because of the
differences with upstream. This one:
commit 4f4db5a (HEAD -> main, origin/main, origin/HEAD)
Author: Xabier Rodriguez-Calvar <calvaris@igalia.com>
Date: Thu Sep 19 22:40:41 2024 -0700
[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@main1 parent 0cb500e commit 3b3a227
1 file changed
Lines changed: 3 additions & 0 deletions
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4219 | 4219 | | |
4220 | 4220 | | |
4221 | 4221 | | |
| 4222 | + | |
| 4223 | + | |
| 4224 | + | |
4222 | 4225 | | |
4223 | 4226 | | |
4224 | 4227 | | |
| |||
0 commit comments