<div dir="ltr">On Tue, Mar 5, 2013 at 8:20 AM, tajourim <span dir="ltr"><<a href="mailto:tajouri.maher@gmail.com" target="_blank">tajouri.maher@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">thank you for reply Josh,<br>
I think that you don't understand my problem. I will explain again.<br>
I created a plugin with sink pad and source pad. I want to execute this<br>
command:<br>
> gst-launch filesrc location=stream/movie.h264 ! plguin<br>
But my element's sink pad wasn't linked to the data stream (srcpad of<br>
filesrc).<br>
NOTE: gst_pad_link() function links the source pad and the sink pad to the<br>
same element<br>
I want to link my element's sink pad to the srcpad of filesrc.<br></blockquote><div><br></div><div style>We still need more information. Given your command, gst-launch will automatically try and link the src pad of filesrc with the sink pad of your element (that is a pad with direction GST_PAD_SINK). If it failed to link, there could be numerous reasons. Perhaps there's no valid intersection between the caps templates of the two pads. Or perhaps your element fails to initialize. Or no valid caps could be negotiated. However since the caps of the src of filesrc is ANY, caps negotiation problems are unlikely.</div>

<div style><br></div><div style>You need to provide more information about the actual error that is occurring. Try debugging with a high level, pipe it to a file, then inspect that.</div><div style><br></div><div style>Also note that gst_pad_link() links any two pads together, not just within the same element.</div>

<div style><br></div><div style>-Josh</div></div></div></div>