Chain element with multiple outputs

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Chain element with multiple outputs

iron_guitarist1987
Hello,

I know the basic structure of a chain element, but I want to know how to have two pads in my plugin.
All I want is the most basic way (or example) on how to do this.

Just to copy the source and output it through two sinks is enough.

Thanks,
All your bases are belong to us.
Reply | Threaded
Open this post in threaded view
|

Re: Chain element with multiple outputs

Stefan Sauer
On 04/06/2012 09:46 PM, iron_guitarist1987 wrote:
> Hello,
>
> I know the basic structure of a chain element, but I want to know how to
> have two pads in my plugin.
> All I want is the most basic way (or example) on how to do this.
you can start a task on each pad, if they run independently or push
buffers on both pads from one chain function. It really depends on what
your use case/element looks like.

Stefan

> Just to copy the source and output it through two sinks is enough.
>
> Thanks,
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Chain-element-with-multiple-outputs-tp4538166p4538166.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Chain element with multiple outputs

iron_guitarist1987
So having two gst_pad_push functions is enough?

How would I use the plugin?
Here gst_template would have two sinks:

gst-launch -v -m fakesrc ! gst_template.sink1 ! fakesink ! gst_template.sink2 ! fakesink

Would this be correct?

Thanks again,
All your bases are belong to us.