After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 757018 - aggregator: Add create_new_pad() vfunc to allow subclasses to override the default behaviour
aggregator: Add create_new_pad() vfunc to allow subclasses to override the de...
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
unspecified
Other All
: Normal normal
: 1.7.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-10-23 12:43 UTC by Sebastian Dröge (slomo)
Modified: 2015-10-23 13:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
aggregator: Add create_new_pad() vfunc to allow subclasses to override the default behaviour (3.88 KB, patch)
2015-10-23 12:43 UTC, Sebastian Dröge (slomo)
committed Details | Review

Description Sebastian Dröge (slomo) 2015-10-23 12:43:44 UTC
See commit message
Comment 1 Sebastian Dröge (slomo) 2015-10-23 12:43:49 UTC
Created attachment 313939 [details] [review]
aggregator: Add create_new_pad() vfunc to allow subclasses to override the default behaviour

Not all aggregator subclasses will have a single pad template called sink_%u
and might do something special depending on what the application requests.
Comment 2 Thibault Saunier 2015-10-23 12:46:30 UTC
Review of attachment 313939 [details] [review]:

Why not override klass->create_new_pad directly?
Comment 3 Thibault Saunier 2015-10-23 12:47:26 UTC
(In reply to Thibault Saunier from comment #2)
> Review of attachment 313939 [details] [review] [review]:
> 
> Why not override klass->create_new_pad directly?

And I obviously meant gstelement_class->request_new_pad
Comment 4 Sebastian Dröge (slomo) 2015-10-23 12:56:17 UTC
Because the implementation of GstAggregator does things that a subclass can't do and still would like to do. And we might add more things there in the future.
Comment 5 Thibault Saunier 2015-10-23 12:59:16 UTC
Review of attachment 313939 [details] [review]:

Indeed, it makes sense.
Comment 6 Sebastian Dröge (slomo) 2015-10-23 13:33:31 UTC
commit 4eef8424b96192ea4972c549a649485c6dc4224d
Author: Sebastian Dröge <sebastian@centricular.com>
Date:   Fri Oct 23 15:42:24 2015 +0300

    aggregator: Add create_new_pad() vfunc to allow subclasses to override the default behaviour
    
    Not all aggregator subclasses will have a single pad template called sink_%u
    and might do something special depending on what the application requests.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=757018