[gst-devel] assertion `GST_IS_CAPS (caps)' failed

bertrand haut bertrand.haut at gmail.com
Tue May 16 10:40:07 CEST 2006


On 5/16/06, Jan Schmidt <thaytan at noraisin.net> wrote:
> On Tue, 2006-05-16 at 17:46 +0200, bertrand haut wrote:
> > On 5/16/06, Jan Schmidt <thaytan at noraisin.net> wrote:
> > > Or, more simply again you can replace the whole lot with
> > >
> > > out_buf = gst_buffer_make_writable (buf);
> >
> > I've tried this proposition. My code of the chain function is for the moment
> >
> >      GstBuffer * out_buf;
> >      out_buf = gst_buffer_make_writable (buf);
> >
> >    unsigned char * g_out = (unsigned char *) (GST_BUFFER_DATA(out_buf));
> >
> > int i,j;
> > for(i=0 ; i < filter->height ; ++i)
> >   for(j=0  ;  j< filter->width  ; ++j)
> >     g_out[(i*filter->width+j)*2  ]=0;
> >   return gst_pad_push (filter->srcpad, out_buf);
> >
> > So gst-launch-0.10 v4l2src ! undiscret ! xvimagesink must produce a
> > constant image. But it does not work... I still see the tv  (
> > /dev/video0 is a tv capture card)
>
> Are you sure that filter->height and filter->width are being set to the
> right values? That's the only thing I can think of.

Indeed, shame on me... I"ve cut & paste the code and I must have made
an error somewhere. Thanks for your help

-- 
Bertrand Haut
pgp key:B9514013C02E33FA


More information about the gstreamer-devel mailing list