_chain() function for GstBin subclass

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

_chain() function for GstBin subclass

Thành Trung Nguyễn
Hi,

I'm inheriting GstBin class to make an element that change fps for video stream. My plugin was generated by using gst-template and it has the default _chain() function which push data from sink pad to src pad.
So I decide to remove this function. Then, the pipeline using gst-launch still run but nothing come out to videosink.
I've checked other element that inherited from GstBin and seem all of them do not have _chain() function.

So, what do I need to do when inherit GstBin, mean: which methods are needed to have. What's replaced for _chain() function ?

Thanks

--
Cheers !

trungnt

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: _chain() function for GstBin subclass

Tim-Philipp Müller-2
On Sat, 2009-08-29 at 12:35 +0700, Thành Trung Nguyễn wrote:

> So, what do I need to do when inherit GstBin, mean: which methods are
> needed to have. What's replaced for _chain() function ?

There is no replacement. Data is routed via ghostpads to/from elements
inside your bin.

 Cheers
  -Tim



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: _chain() function for GstBin subclass

Thành Trung Nguyễn
So I wonder why there's nothing come to videosink. I've already linked ghost pads to needed elements.

On Sat, Aug 29, 2009 at 4:53 PM, Tim-Philipp Müller <[hidden email]> wrote:
On Sat, 2009-08-29 at 12:35 +0700, Thành Trung Nguyễn wrote:

> So, what do I need to do when inherit GstBin, mean: which methods are
> needed to have. What's replaced for _chain() function ?

There is no replacement. Data is routed via ghostpads to/from elements
inside your bin.

 Cheers
 -Tim



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



--
Cheers !

trungnt

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: _chain() function for GstBin subclass

Thành Trung Nguyễn
Look like I did something wrong. I restarted with some fresh code and it work now !

Thanks

2009/8/31 Thành Trung Nguyễn <[hidden email]>
So I wonder why there's nothing come to videosink. I've already linked ghost pads to needed elements.


On Sat, Aug 29, 2009 at 4:53 PM, Tim-Philipp Müller <[hidden email]> wrote:
On Sat, 2009-08-29 at 12:35 +0700, Thành Trung Nguyễn wrote:

> So, what do I need to do when inherit GstBin, mean: which methods are
> needed to have. What's replaced for _chain() function ?

There is no replacement. Data is routed via ghostpads to/from elements
inside your bin.

 Cheers
 -Tim



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



--
Cheers !

trungnt



--
Cheers !

trungnt

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel