Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] svdr GRAB & NEWSTRUCT
Hi List,
Just found a problem with the GrabImage() method and the NEWSTRUCT driver, it
just don't work.
Here is a small patch to fix the problem
===== dvbdevice.c 1.4 vs edited =====
--- 1.4/dvbdevice.c Sun Sep 8 19:00:46 2002
+++ edited/dvbdevice.c Thu Sep 12 20:05:50 2002
@@ -200,7 +200,11 @@
bool cDvbDevice::GrabImage(const char *FileName, bool Jpeg, int Quality, int
SizeX, int SizeY)
{
- int videoDev = DvbOpen(DEV_VIDEO, CardIndex(), O_RDWR, true);
+ char buffer[PATH_MAX];
+ snprintf(buffer, sizeof(buffer), "%s%d", DEV_VIDEO, CardIndex());
+ int videoDev = open(buffer, O_RDWR);
+ if (videoDev < 0)
+ LOG_ERROR_STR(buffer);
if (videoDev >= 0) {
int result = 0;
struct video_mbuf mbuf;
Have fun
Andreas
Home |
Main Index |
Thread Index