<div>hi,</div>  <div>&nbsp;</div>  <div>I wrote a filter based on GstBaseTransform, it could not linked in the pipeline.<BR>I want to support specified caps, incaps is specified in sink_factory, and outcpas is described in src_factory.</div>  <div>Then register them in "base_init" function</div>  <div>&nbsp;</div>  <div>gst_element_class_add_pad_template (element_class, gst_static_pad_template_get(&amp;src_factory));<BR>gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&amp;sink_factory));</div>  <div>&nbsp;</div>  <div>In "transform", I even do nothing, just output what input<BR>&nbsp;&nbsp;outbuf = inbuf;</div>  <div>&nbsp;</div>  <div>when I use "gst-launch filesrc location=instream ! filter ! filesink location=out"<BR>system print</div>  <div>&nbsp;</div>  <div>ERROR (0x19258 - 0:00:01.004559000)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GST_PIPELINE( 1015) ./grammar.y(533):gst_parse_perform_link: could not link amrnbdec0 to
 filesink0<BR>WARNING: erroneous pipeline: could not link amrnbdec0 to filesink0</div>  <div>&nbsp;</div>  <div>Is there any trickiness, how to register supported caps to system for negotiating?</div>  <div><BR>if based on GstElement, this will enough.</div>  <div>Is transform_caps is the place to register the cpas to system?</div>  <div>&nbsp;</div>  <div>Thanks in advance!<BR></div><p>&#32;
                <hr size=1><a href="http://cn.mail.yahoo.com" target=blank>ÇÀ×¢ÑÅ»¢Ãâ·ÑÓÊÏä-3.5GÈÝÁ¿£¬20M¸½¼þ£¡</a>