| To: | "" <> |
|---|---|
| Subject: | [pwc] pwc & MPlayer v4l2 |
| From: | mario rossi <> |
| Date: | Sun, 8 Jan 2006 06:03:25 -0800 (PST) |
Hi,
I'm trying to use PWC with the driver V4L2 of MPlayer
and I have a problem after a call to the IOCTL
function VIDIOC_ENUMSTD.
I get a floating point exception since MPlayer tries
to compute the ratio of numerator / denominator of the
struct framepriod, which pwc leaves NULL.
In the actual implementation (pwc-10.0.11) it olny
sets the "name" and leave all the other fields
unchanged.
I suggest to set the "frameperiod" as in the following
example
file pwc-v4l.c, line 1049
case VIDIOC_ENUMSTD:
{
struct v4l2_standard *std = arg;
if (std->index != 0)
return -EINVAL;
std->id = V4L2_STD_UNKNOWN;
strncpy(std->name, "webcam", sizeof(std->name));
std->frameperiod.numerator = 1; // NEW
std->frameperiod.denominator = pdev->vframes; // NEW
return 0;
}
what do you think?
__________________________________________
Yahoo! DSL ? Something to write home about.
Just $16.99/mo. or less.
dsl.yahoo.com
_______________________________________________
pwc mailing list
http://lists.saillard.org/mailman/listinfo/pwc
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [pwc] Logitech Quickcam Notebook Pro 0x046D:0x08AE, pwc re-compiled, Michael Schaale |
|---|---|
| Next by Date: | [pwc] VIDIOCPWCRUSER, doelie |
| Previous by Thread: | Re: [pwc] Logitech Quickcam Notebook Pro 0x046D:0x08AE, pwc re-compiled, Michael Schaale |
| Next by Thread: | [pwc] VIDIOCPWCRUSER, doelie |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU