<div>Hi , all :</div>
<div> </div>
<div>It is possible to have something like this on a GstBin ?</div>
<div> </div>
<div> ---------------------------------------------------------</div>
<div> | GstBin ____________ | </div>
<div> GHostPad |___ |_GstBaseSink | | </div>
<div> - - - - - - -|___|------|_| | |</div>
<div> | |____________ | |</div>
<div> | |</div>
<div> | ____________ |</div>
<div> | | _| ___| GHostPad</div>
<div> | | |__|-------------|___|- - - - - - - - - - </div>
<div> | | GstBaseSrc | |</div>
<div> | |____________| |</div>
<div> | |</div>
<div> ---------------------------------------------------------|</div>
<div> </div>
<div>I'm writing a GstBin based plugin that contains two elements; one is a GstBaseSink and </div>
<div>the other is GstBaseSrc, This element should be capable of process something as a <filter> or it can be a used as a <sink> depending on the position on the pipeline. </div>
<div> </div>
<div>
<div>a) gst-launch filesrc location=aaa.txt | mybin | filesink location=zzz.txt</div>
<div> </div>
<div>b) gst-launch filesrc location=aaa.txt | mybin</div></div>
<div> </div>
<div>In my case the data can be read() or write() from an internal pipe() and I want to keep asynchronous calls from input buffers and output buffers as well. This should be optional.</div>
<div> </div>
<div>By now I see GhostPad is looking for a "chainfunction &gst_proxy_pad_do_chain of pad mybin0:sink"; so I think the sink element doesn't have a _chain() function. </div>
<div>It is expected to have a <filter> inside?</div>
<div> </div>
<div>If anyone have suggestion for a better solution.. </div>
<div> </div>
<div>Thanks in advance. </div>
<div> </div>
<div>Roberto G.</div>
<div> </div>
<div> </div>
<div> </div>