Em Wednesday 16 January 2008 18:05:44 Laurent Pinchart escreveu:
> On Tuesday 15 January 2008, Herton Ronaldo Krzesinski wrote:
> > Em Tuesday 15 January 2008 20:12:16 Laurent Pinchart escreveu:
> > If I patch luvcview like this:
> >
> > --- v4l2uvc.c.orig      2008-01-15 20:19:57.000000000 -0200
> > +++ v4l2uvc.c   2008-01-15 20:19:40.000000000 -0200
> > @@ -462,6 +462,8 @@ int uvcGrab(struct vdIn *vd)
> >  #define HEADERFRAME1 0xaf
> >      int ret;
> >
> > +    sleep(1);
> > +
> >      if (!vd->isstreaming)
> >         if (video_enable(vd))
> >             goto err;
> >
> > And use luvcview with patched uvcvideo, the behaviour between the two
> > patches is different. With your patch, the stream of video doesn't work
> > well, it captures only the first 1/2 frames and stop. But in stock
> > luvcview without the sleep your patch works fine. The difference here is
> > that with the patch I posted earlier it works in both cases, it doesn't
> > fail with the luvcview patched with sleep.
>
> I see where the problem comes from. Could you please test the attached
> patch ? It should fix the freeze and still prevent the last payload of each
> frame to be discarded.

Yes, tested and everything is ok now with this patch.

>
> Best regards,
>
> Laurent Pinchart

--
[]'s
Herton
_______________________________________________
Linux-uvc-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel

Reply via email to