Bug 244534

Summary: [GStreamer] MediaPlayerPrivateGStreamer: Abort stale tasks on flushes
Product: WebKit Reporter: Alicia Boya García <aboya>
Component: WebKitGTKAssignee: Alicia Boya García <aboya>
Status: RESOLVED FIXED    
Severity: Normal CC: bugs-noreply
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Alicia Boya García 2022-08-30 06:38:56 PDT
This patch is a combination of a follow-up of
https://github.com/WebKit/WebKit/pull/3746, and a fix for a race
condition I independently discovered before said PR was published.

Minor cleanups for pr/3746 are done, additional logging is added,
MediaPlayerPrivateGStreamer::m_abortableTaskQueue is renamed to
MediaPlayerPrivateGStreamer::m_sinkTaskQueue, comments are added, and
most importantly: the task queue is flushed when a GStreamer flush is
received. This fixes a race condition on MSE flushes.
Comment 1 Alicia Boya García 2022-08-30 06:42:00 PDT
Pull request: https://github.com/WebKit/WebKit/pull/3802
Comment 2 EWS 2022-09-04 07:08:36 PDT
Committed 254142@main (e55d1903cf10): <https://commits.webkit.org/254142@main>

Reviewed commits have been landed. Closing PR #3802 and removing active labels.