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

Jan Schmidt thaytan at noraisin.net
Tue May 16 10:00:12 CEST 2006


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.

J.

-- 
Jan Schmidt thaytan at noraisin.net

"Stoke me a clipper, I'll be back for Christmas"
-- Arnold 'Ace' Rimmer, Red Dwarf






More information about the gstreamer-devel mailing list