Bug 208041 - [GStreamer] TextCombinerGStreamer is failing to compile with Gst1.14
Summary: [GStreamer] TextCombinerGStreamer is failing to compile with Gst1.14
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Lauro Moura
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-02-20 20:03 PST by Lauro Moura
Modified: 2020-02-21 04:39 PST (History)
12 users (show)

See Also:


Attachments
Patch (2.14 KB, patch)
2020-02-20 20:04 PST, Lauro Moura
no flags Details | Formatted Diff | Diff
Patch (1.83 KB, patch)
2020-02-21 03:44 PST, Lauro Moura
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lauro Moura 2020-02-20 20:03:01 PST
[GStreamer] TextCombinerGStreamer is failing to compile with Gst1.14
Comment 1 Lauro Moura 2020-02-20 20:04:45 PST
Created attachment 391376 [details]
Patch
Comment 2 Xabier Rodríguez Calvar 2020-02-21 01:26:00 PST
Comment on attachment 391376 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=391376&action=review

> Source/WebCore/platform/graphics/gstreamer/TextCombinerGStreamer.cpp:110
> +        gst_tag_list_unref(combinerPad->tags);

unref and then assign to nullptr, which is what clear is doing

> Source/WebCore/platform/graphics/gstreamer/TextCombinerGStreamer.cpp:113
> +        gst_object_unref(combinerPad->funnelPad);

ditto
Comment 3 Alicia Boya García 2020-02-21 02:39:01 PST
Comment on attachment 391376 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=391376&action=review

>> Source/WebCore/platform/graphics/gstreamer/TextCombinerGStreamer.cpp:110
>> +        gst_tag_list_unref(combinerPad->tags);
> 
> unref and then assign to nullptr, which is what clear is doing

g_clear_pointer(&combinerPad->tags, gst_tag_list_unref);

>> Source/WebCore/platform/graphics/gstreamer/TextCombinerGStreamer.cpp:113
>> +        gst_object_unref(combinerPad->funnelPad);
> 
> ditto

g_clear_pointer(&combinerPad->funnelPad, gst_object_unref);
Comment 4 Xabier Rodríguez Calvar 2020-02-21 03:00:06 PST
(In reply to Alicia Boya García from comment #3)
> Comment on attachment 391376 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=391376&action=review
> 
> >> Source/WebCore/platform/graphics/gstreamer/TextCombinerGStreamer.cpp:110
> >> +        gst_tag_list_unref(combinerPad->tags);
> > 
> > unref and then assign to nullptr, which is what clear is doing
> 
> g_clear_pointer(&combinerPad->tags, gst_tag_list_unref);
> 
> >> Source/WebCore/platform/graphics/gstreamer/TextCombinerGStreamer.cpp:113
> >> +        gst_object_unref(combinerPad->funnelPad);
> > 
> > ditto
> 
> g_clear_pointer(&combinerPad->funnelPad, gst_object_unref);

👏🏼

I didn't remember this
Comment 5 Lauro Moura 2020-02-21 03:44:53 PST
Created attachment 391391 [details]
Patch
Comment 6 Carlos Alberto Lopez Perez 2020-02-21 04:31:42 PST
(In reply to Lauro Moura from comment #0)
> [GStreamer] TextCombinerGStreamer is failing to compile with Gst1.14

In general I appreciate giving more pointers to when this started to happen in the bug description or at least adding the related bug in the see also field :)
Comment 7 WebKit Commit Bot 2020-02-21 04:38:23 PST
Comment on attachment 391391 [details]
Patch

Clearing flags on attachment: 391391

Committed r257133: <https://trac.webkit.org/changeset/257133>
Comment 8 WebKit Commit Bot 2020-02-21 04:38:25 PST
All reviewed patches have been landed.  Closing bug.
Comment 9 Radar WebKit Bug Importer 2020-02-21 04:39:16 PST
<rdar://problem/59665227>