Mailing List archive

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

[vdr] Re: DvbDevice::GrabImage killing vdr?



Guido Fiala wrote:

On Friday 21 May 2004 13:14, Jan Ekholm wrote:

On Thu, 20 May 2004, Guido Fiala wrote:

Has someone else also experienced that problem?

ASAP a call to this function is made (e.g using the screenshot-plugin)
vdr dies, no message in syslog, looks like segfault...

Yes, I've seen it. Doing a SVDRP GRAB command can freeze VDR for a while,
but it usually last less than one minute so the watchdog doesn't get

That must be something different - vdr crashes really instantly now.
(using dvb-kernel at least)

As my kvdr grabs just fine from the _same_ video-device i assume the GrabImage-function is broken in vdr, if the failure is not that obvious to fix i might try to re-import the GrabImage function from kvdr to vdr...

Never had grey images either.

Guido



Hi,
I had the same problem which was caused by kernel 2.6 and a little error implemented by the Komplettpatch.
You can try the following patch.
Bye
Helmut

--- dvbdevice.c.org 2004-02-13 14:01:58.000000000 +0100
+++ dvbdevice.c 2004-02-13 14:07:26.000000000 +0100
@@ -637,7 +637,36 @@
}
fclose(f);
}
- fclose(f);
+ if( f == (FILE *)NULL ) // if not found check for sysfs structure
+ {
+ ofs = -1;
+ while (1) {
+ snprintf(buffer, sizeof buffer, "/sys/class/video4linux/video%d/name", ++ofs);
+ if ((f = fopen(buffer, "r")) == (FILE *)NULL) { // does not exist?
+ ofs = 0;
+ break;
+ }
+ if (fgets(buffer, sizeof buffer, f)) {
+ if (strstr(buffer, "av7110")) // found the _first_ DVB card - works only for AV7110 cause I don't know it better
+ {
+ break;
+ }
+ }
+ else {
+ ofs = 0;
+ break;
+ }
+ fclose(f);
+ }
+ if( f != (FILE *)NULL ) // if not found check for sysfs structure
+ {
+ fclose(f);
+ }
+ }
+ else
+ {
+ fclose(f);
+ }
}
snprintf(buffer, sizeof(buffer), "%s%d", DEV_VIDEO, CardIndex() + ofs); int videoDev = open(buffer, O_RDWR);
if (videoDev < 0)




--
Helmut Auer, helmut@helmutauer.de



--
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index