[gst-devel] Extending a pad template

in7y118 at public.uni-hamburg.de in7y118 at public.uni-hamburg.de
Tue Feb 10 06:28:04 CET 2004


We certainly lack that remove_template function (you can go ahead and just add 
it in CVS), but I think the best way to do it in this case is to add 
a "dvd_audio_%d" template for the new types.

Benjamin


Quoting Martin Soto <soto at informatik.uni-kl.de>:

> Hello everyone!
> 
> I'm currently refactoring the mpegdemux element, to split it into a pure
> MPEG demuxer (mpegdemux itself) and a derived DVD demuxer (the new
> dvddemux).  While doing that, I ran into the following problem:
> 
> Since the mpegdemux element is now targeted to standard MPEG streams
> without extensions, the only supported sound type is MPEG audio.  I
> defined a template to the effect that is used by all sound output pads. 
> The DVD demuxer, on the other hand, supports three other sound types in
> addition to MPEG, which means that the sound output pads must use a
> different, more general template.  However, when I try to register it in
> dvddemux's base_init method, it fails because mpegdemux's base_init
> already installed a template with the same name.
> 
> What can I do?  There's a gst_element_class_add_pad_template funtion,
> but I don't see any gst_element_class_remove_pad_template that I can use
> to get rid of the existing template.  Should I add it and submit a 
> patch?
> 
> M. S.
> -- 
> Martin Soto <soto at informatik.uni-kl.de>
> 
> 
> 
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> 






More information about the gstreamer-devel mailing list