[gst-devel] Caps problem when writing encoder/decoder
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?
Imho you're passing a buffer incompatible with the pad caps.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gstreamer-devel