[gst-devel] Caps problem when writing encoder/decoder

Marco Ballesio gibrovacco at gmail.com
Tue May 18 14:52:40 CEST 2010


On Tue, May 18, 2010 at 1:31 PM, Hunterwood <markus.jagerskogh at imentum.se>wrote:

>
>
> To isolate the problem with the caps, the code just passes on the incomming
> buffer (just as the gst-template, which I used as base), and the
> interresting parts of the encoder looks like this (I have omited
> gst_gtestenc_class_init and parts of gst_gtestenc_base_init bellow):
>




>
>
> static GstFlowReturn gst_gtestenc_chain (GstPad * pad, GstBuffer * buf)
> {
>  Gstgtestenc *filter;
>
>  filter = GST_GtestENC (GST_OBJECT_PARENT (pad));
>
>  /* just push out the incoming buffer without touching it */
>  return gst_pad_push (filter->srcpad, buf);
> }
>

Are you setting the proper caps/type on the buffer itself?

http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#gst-buffer-set-caps

Imho you're passing a buffer incompatible with the pad caps.

Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20100518/3db56beb/attachment.htm>


More information about the gstreamer-devel mailing list