<div>This means that you are not setting proper caps to outbuf what you are pushing to the next element. Probably take a look at any video decoder plugin's source code for an example. </div>
<div><br><br> </div>
<div class="gmail_quote">2011/2/23 <a href="mailto:wangzg@hikvision.com" target="_blank">wangzg@hikvision.com</a> <span dir="ltr"><<a href="mailto:wangzg@hikvision.com" target="_blank">wangzg@hikvision.com</a>></span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div style="FONT-FAMILY: verdana; FONT-SIZE: 10pt">
<div><font face="Verdana"><font size="2">
<div><font face="Verdana"><font size="2">Dear sirs,</font></font></div>
<div><font face="Verdana"> I have encounted a problem when i tried to write a gstreamer plugin supporting my specical file format, the attached is my code.</font></div>
<div><font face="Verdana"> First, i get stream data from file src;then i decode the data using my STREAMPROC_XX lib; if i get a yuv frame, i negotiate with the peer pad, finally i push the frame.</font></div>
<div><font face="Verdana"> But i always get an err (-4) from the <font color="#ff0000">fret = gst_pad_push (dec->srcpad, outbuf);</font> code, i check the code carefully, but i don't solve it, so i need your help, many thanks.</font></div>
<div> </div></font></font><font face="Verdana"><font size="2">
<hr style="MIN-HEIGHT: 2px; WIDTH: 122px" size="2">
</font></font></div>
<div><font color="#c0c0c0"><font size="2"><a href="mailto:wangzg@hikvision.com" target="_blank">wangzg@hikvision.com</a></font></font></div><font color="#888888">
<div><font size="2">2011-02-23</font></div></font></div><br>_______________________________________________<br>gstreamer-devel mailing list<br><a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>
<br>Sudarshan Bisht<br>