Bug 208234 - [GStreamer] Correctly remove webvttenc on WebKitTextCombiner pad release
Summary: [GStreamer] Correctly remove webvttenc on WebKitTextCombiner pad release
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Alicia Boya García
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-26 04:29 PST by Alicia Boya García
Modified: 2020-02-26 06:45 PST (History)
9 users (show)

See Also:


Attachments
Patch (2.73 KB, patch)
2020-02-26 04:32 PST, Alicia Boya García
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alicia Boya García 2020-02-26 04:29:50 PST
The implementation of webkitTextCombinerReleasePad() was wrong in that
it was checking the peer pad of webkittextcombinerpad to check if it
belonged a webvttenc element and remove it... But since this is a
ghostpad, the peer is upstream, not downstream. When the release pad
function is called, upstream is already disconnected, so the branch
was never hit.

To actually remove the webvttenc element we must check the target pad
instead of the peer pad, which corresponds to the element downstream.
Also, we need to set the element state to NULL before removing it,
which the previous code didn't.
Comment 1 Alicia Boya García 2020-02-26 04:32:32 PST
Created attachment 391735 [details]
Patch
Comment 2 WebKit Commit Bot 2020-02-26 06:45:34 PST
Comment on attachment 391735 [details]
Patch

Clearing flags on attachment: 391735

Committed r257468: <https://trac.webkit.org/changeset/257468>
Comment 3 WebKit Commit Bot 2020-02-26 06:45:36 PST
All reviewed patches have been landed.  Closing bug.