[gst-devel] Link function is not being triggered for sink-pad of plugin.

Vinayak vinayak.pane at gmail.com
Thu Jan 11 14:26:22 CET 2007


Thanks Wim,
We need to call peer link-function manually.  The
gst_pad_set_link_function() docs says the same.

./v

On 1/11/07, Wim Taymans <wim at fluendo.com> wrote:
>
> On Thu, 2007-01-11 at 17:23 +0530, Vinayak wrote:
> > Hi Everyone,
> >
> > I have written my-filter plugin and a my-sink plugin.
> > When I connect this my-sink plugin to filesrc directly its link
> > function for sinkpad is triggered.
> >
> > Now when the filter plugin is connected in between, the link for
> > disp-sink sinkpad is not triggered.
> >
> > pipeline:   filesrc location=xyz !  my-filter  !  my-sink
> >
> > In this case, the link functions for srcpad & sinkpad of my-filter are
> > called by gstreamer while linking.
> > But the link-function associated with my-sink is not being called at
> > all.
> >
> > What could be the possible reason for this behaviour ?
> > Please suggest some points if I'm missing something here.
>
> If you installed a link function on the source pad of your custom
> filter, make sure to call the peer link function yourself as stated in
> the docs of gst_pad_set_link_function(). The reason being that else the
> link operation cannot be made to work/fail atomically.
>
> Wim
>
> >
> > Thanks in advance,
> > Vinayak
> >
> >
> -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________ gstreamer-devel mailing
> list gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> --
> Wim Taymans <wim at fluendo.com>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20070111/9c16befe/attachment.htm>


More information about the gstreamer-devel mailing list