[Webkit-unassigned] [Bug 211155] New: PlatformMediaResourceLoader should be destroyed on the main thread

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 28 17:00:48 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=211155

            Bug ID: 211155
           Summary: PlatformMediaResourceLoader should be destroyed on the
                    main thread
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Media
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: aboya at igalia.com

PlatformMediaResourceLoader is only safe to use from the main thread.
A tricky detail is this includes its destruction. The same is true for
PlatformMediaResource.

Both classes are ThreadSafeRefCounted<> classes and therefore
WTF::DestructionThread::Main can be used to ensure destruction is run
in the correct thread with no need for additional client code.

* platform/graphics/PlatformMediaResourceLoader.h:
* platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
(WebKitWebSrcPrivate::StreamingMembers::~StreamingMembers):

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200429/6301cadb/attachment.htm>


More information about the webkit-unassigned mailing list