Re: little program, big problem

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



Hey Ottavio,

On Fri, 2003-03-28 at 07:57, Ottavio Campana wrote:
> When I run it I get "mmap:  Invalid argument" and then segfault. What is
> invalid for mmap?

As far as I could see, you're not running VIDIOCGMBUF before mmap()'ing.
You need to allocate/request the buffers (that's what VIDIOCGMBUF does)
before using them.

Ronald

-- 
Ronald Bultje <rbultje@xxxxxxxxxxxxxxxxxxx>





[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