Re: Mp1e and BTTV 0.8.33

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



On Sun, 10 Feb 2002, Stephen Davies wrote:

>
>
> On Sun, 10 Feb 2002, Kevin Atkinson wrote:
>
> > I would email the author but I vaguely remember someone posting a similar
> > problem so I thought someone on this list might know.  Here is some of the
> > code:
> >
> > 		p = mmap(NULL, vbuf.length, PROT_READ, MAP_SHARED, fd, vbuf.offset);
> >
> > 		if ((int) p == -1) {
> > 			if (errno == ENOMEM && i > 0)
> > 				break;
> > 			else
> > 				ASSERT("map capture buffer #%d", 0, i);
> > 		} else {
>
> Its necessary to adjust mp1e to open /dev/video with O_RDWR rather than
> read only, also, the mmap must be with PROT_READ|PROT_WRITE.

Thanks that did it.  I will email the author with a patch.

---
http://kevin.atkinson.dhs.org





[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