[webkit-changes] [WebKit/WebKit] e8f13f: [GStreamer][WebCodecs] Fix racy WorkQueues constru...
Philippe Normand
noreply at github.com
Thu Dec 5 03:17:20 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e8f13fa2a6a8234cfa18b8566487cac4d4d2f9fe
https://github.com/WebKit/WebKit/commit/e8f13fa2a6a8234cfa18b8566487cac4d4d2f9fe
Author: Philippe Normand <philn at igalia.com>
Date: 2024-12-05 (Thu, 05 Dec 2024)
Changed paths:
M Source/WebCore/platform/audio/gstreamer/AudioDecoderGStreamer.cpp
M Source/WebCore/platform/audio/gstreamer/AudioEncoderGStreamer.cpp
M Source/WebCore/platform/graphics/gstreamer/VideoDecoderGStreamer.cpp
M Source/WebCore/platform/graphics/gstreamer/VideoEncoderGStreamer.cpp
Log Message:
-----------
[GStreamer][WebCodecs] Fix racy WorkQueues construction issues
https://bugs.webkit.org/show_bug.cgi?id=284098
Reviewed by Jean-Yves Avenard.
In case WebCodecs are used from Workers the WorkQueue creation was prone to race conditions. Fix
this by building them from a once_flag handler.
* Source/WebCore/platform/audio/gstreamer/AudioDecoderGStreamer.cpp:
(WebCore::gstDecoderWorkQueue):
* Source/WebCore/platform/audio/gstreamer/AudioEncoderGStreamer.cpp:
(WebCore::gstEncoderWorkQueue):
* Source/WebCore/platform/graphics/gstreamer/VideoDecoderGStreamer.cpp:
(WebCore::gstDecoderWorkQueue):
* Source/WebCore/platform/graphics/gstreamer/VideoEncoderGStreamer.cpp:
(WebCore::gstEncoderWorkQueue):
Canonical link: https://commits.webkit.org/287394@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