[webkit-changes] [WebKit/WebKit] 9c761f: [GStreamer] MediaPlayer's codecs hashmap needs pro...
Philippe Normand
noreply at github.com
Mon Nov 13 02:24:21 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9c761fded4964b1e7705d00e7757cf44e5e12822
https://github.com/WebKit/WebKit/commit/9c761fded4964b1e7705d00e7757cf44e5e12822
Author: Philippe Normand <philn at igalia.com>
Date: 2023-11-13 (Mon, 13 Nov 2023)
Changed paths:
M Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
M Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h
Log Message:
-----------
[GStreamer] MediaPlayer's codecs hashmap needs protection
https://bugs.webkit.org/show_bug.cgi?id=264707
Reviewed by Xabier Rodriguez-Calvar.
The m_codecs HashMap can be accessed from multiple threads, so it needs to be protected by a mutex.
* Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
(WebCore::MediaPlayerPrivateGStreamer::setupCodecProbe):
(WebCore::MediaPlayerPrivateGStreamer::codecForStreamId):
* Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
Canonical link: https://commits.webkit.org/270629@main
More information about the webkit-changes
mailing list