Re: buggy v4l apps (was: VIDIOCSYNC and bad data)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Tuukka Toivonen <tuukkat@xxxxxxxxxx> writes:

> Well, I could use several internal and mmap buffers like pwc driver.

Yes.

> But since it works so fine right now, I don't want to.

IMHO you should.

> And really, you can't deny that it's the applications that should be
> fixed which expect at least two buffers when the specification
> clearly says that just one may be available.

Applications should be able to deal with just one buffer, yes.

That doesn't invalidate the argument that is a bad idea to use
multiple buffers internally and hide that.  The API is designed to
allow applications explicitly control capture and buffering.  With
your driver this is impossible, instead you do some heuristrics to
figure when to start / stop capture.  Which may fail and (a) not meet
the applications requirements and/or (b) waste USB bandwidth.

> Actually, maybe there's no point fixing application but maybe they
> should be ported right away to Gstreamer =)

gstreamer IMHO is overkill just for doing conversions.

IMHO it would be better to put that into a small library which has
just the conversion functions and nothing else.  And handle gstreamer
support with a small wrapper plugin using that library.

  Gerd

-- 
sigfault




[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux