gStreamer-Sharp - why is AddPad protected?

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

gStreamer-Sharp - why is AddPad protected?

robin-2
Does anyone know why AddPad is protected in the Element class in gStreamer-Sharp?  How can I add a ghost pad to a bin otherwise? 
 
Thanks,
 
 
 
Robin.

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

Re: gStreamer-Sharp - why is AddPad protected?

Sebastian Dröge-7
On Mo, 2012-04-02 at 11:30 +0100, Robin wrote:
> Does anyone know why AddPad is protected in the Element class in
> gStreamer-Sharp?  How can I add a ghost pad to a bin otherwise?  

You create a sub-class of Gst.Bin. This is a cleaner approach and it's
also what you would conceptionally do anyway (but usually don't in C
because creating new GObject types there means lots of code).


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (205 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: gStreamer-Sharp - why is AddPad protected?

Robin Tucker
Thanks Seb.  We did this and then realised we don't need to subclass at all.
We thought we had to do it because we couldn't create ghost pads for our
bins, so wanted to add them manually.  Then we discovered that if we link a
tee to the first element of a bin, the software will automatically detect
the bin has no ghost pads and create some itself.

Took us all morning to figure it out :-).

Now we're stuck on pausing a downstream bin whilst keeping the upstream
pipeline playing.  But that is another question for after lunch.



Robin

-----Original Message-----
From: SebastianDröge
Sent: Monday, April 02, 2012 11:44 AM
To: Discussion of the development of and with GStreamer
Subject: Re: gStreamer-Sharp - why is AddPad protected?

_______________________________________________
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