<br><br><div class="gmail_quote">On Tue, May 18, 2010 at 1:31 PM, Hunterwood <span dir="ltr">&lt;<a href="mailto:markus.jagerskogh@imentum.se">markus.jagerskogh@imentum.se</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br><br>
To isolate the problem with the caps, the code just passes on the incomming<br>
buffer (just as the gst-template, which I used as base), and the<br>
interresting parts of the encoder looks like this (I have omited<br>
gst_gtestenc_class_init and parts of gst_gtestenc_base_init bellow):<br></blockquote><div><br><br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<br>
<br>
static GstFlowReturn gst_gtestenc_chain (GstPad * pad, GstBuffer * buf)<br>
{<br>
  Gstgtestenc *filter;<br>
<br>
  filter = GST_GtestENC (GST_OBJECT_PARENT (pad));<br>
<br>
  /* just push out the incoming buffer without touching it */<br>
  return gst_pad_push (filter-&gt;srcpad, buf);<br>
}<br></blockquote><div><br>Are you setting the proper caps/type on the buffer itself?<br>
<br>
<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#gst-buffer-set-caps">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#gst-buffer-set-caps</a><br>

<br>Imho you&#39;re passing a buffer incompatible with the pad caps.<br><br>Regards<br></div></div>