-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GStreamer] Crash after 10 seconds on watchdog thread do to loop when…
… destroying ~ImageDecoderGStreamerSample https://bugs.webkit.org/show_bug.cgi?id=264824 Reviewed by Xabier Rodriguez-Calvar. The WebProcess was deadlocking at shutdown when the disposal of the element harness of the image decoder was triggering disposal of chained harnesses, within the same thread, through the pad-removed signal emission. The proposed solution is to use a recursive mutex for active pipelines storage protection. This patch also fixes a few more leaks in ImageDecoder and the element harness. * Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.cpp: (WebCore::deinitializeGStreamer): * Source/WebCore/platform/graphics/gstreamer/ImageDecoderGStreamer.cpp: (WebCore::teardownGStreamerImageDecoders): (WebCore::ImageDecoderGStreamer::create): (WebCore::ImageDecoderGStreamer::ImageDecoderGStreamer): (WebCore::ImageDecoderGStreamer::tearDown): (WebCore::ImageDecoderGStreamer::pushEncodedData): * Source/WebCore/platform/graphics/gstreamer/ImageDecoderGStreamer.h: * Source/WebCore/platform/gstreamer/GStreamerElementHarness.cpp: (WebCore::GStreamerElementHarness::GStreamerElementHarness): (WebCore::GStreamerElementHarness::~GStreamerElementHarness): (WebCore::GStreamerElementHarness::Stream::Stream): (WebCore::GStreamerElementHarness::Stream::~Stream): (WebCore::GStreamerElementHarness::Stream::sinkEvent): (WebCore::GStreamerElementHarness::srcEvent): * Source/WebCore/platform/gstreamer/GStreamerElementHarness.h: Canonical link: https://commits.webkit.org/275032@main
- Loading branch information
Showing
5 changed files
with
69 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters