is it possible to add another src pad in GstBaseSrc class?

Dimitrios Katsaros patcherwork at gmail.com
Fri Apr 7 08:02:03 UTC 2017


Again, I would suggest against that. If you want to make a "tee" like
source I would go for a bin that contains the source and tee elements and
handling request pads on the bin level. It is simple enough to just create
a ghost pad and link it to a pad requested from the tee. keep in mind that
if you modify the base you will then have to implement the element logic on
top of the base you built. And more importantly, why reinvent the wheel
when you already have elements that have been built to handle this case,
have been rigorously tested and you can get support for when something
doesn't work.

Dimitrios

On Fri, Apr 7, 2017 at 6:11 AM, caoxi <xi.cao at intel.com> wrote:

> Generally, my purpose is to make my source plugin to have the same function
> as Tee element, that the source element can have several active
> pads(whether
> always pad or request pad), and I've already made a design, all I need is
> to
> rewrite GstBaseSrc and GstPushSrc, I'll try if my design works~
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.
> n4.nabble.com/is-it-possible-to-add-another-src-pad-in-GstBaseSrc-class-
> tp4682539p4682565.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170407/96f1ceb8/attachment.html>


More information about the gstreamer-devel mailing list