[webkit-changes] [WebKit/WebKit] 4f4db5: [GStreamer] Do not access a null GstStructure
Xabier Rodríguez
noreply at github.com
Thu Sep 19 22:41:46 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4f4db5aea9b8871ed9daff946b54bf200c84e193
https://github.com/WebKit/WebKit/commit/4f4db5aea9b8871ed9daff946b54bf200c84e193
Author: Xabier Rodriguez-Calvar <calvaris at igalia.com>
Date: 2024-09-19 (Thu, 19 Sep 2024)
Changed paths:
M Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.cpp
M Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
Log Message:
-----------
[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
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list