Sometimes pad creation

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

Sometimes pad creation

Irfan Shaikh-2
Sometimes pad creation

Hello,

      I have taken a gst-plugin tempalate and modifying it so that i can create sometimes pad. Currently i want my plugin such that only one some times pad is created. When i run the pluging get following warning

[root@localhost gst-plugin]# gst-launch fakesrc ! sometime ! fakesink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...

(gst-launch-0.10:31042): GStreamer-WARNING **: adding flushing pad 'src_00' to running element 'plugintemplate0'
Before pushing
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
After pushing
I'm plugged, therefore I'm in.

/******************************************************************************************/

$$$ PFA MY Test Code $$$




------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

gstplugin.c (14K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Sometimes pad creation

Tim-Philipp Müller-2
On Fri, 2010-06-18 at 18:19 +0530, Irfan Shaikh wrote:
>
Hi,

>       I have taken a gst-plugin tempalate and modifying it so that i
> can create sometimes pad. Currently i want my plugin such that only
> one some times pad is created. When i run the pluging get following
> warning
>
> [root@localhost gst-plugin]# gst-launch fakesrc ! sometime ! fakesink
> Setting pipeline to PAUSED ...
> Pipeline is PREROLLING ...
>
> (gst-launch-0.10:31042): GStreamer-WARNING **: adding flushing pad
> 'src_00' to running element 'plugintemplate0'

You need to gst_pad_set_active(pad,TRUE) before adding the pad (with git
of gstreamer core the warning will say so too).

 Cheers
  -Tim


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel