From: Michael R. <re...@eu...> - 2004-01-26 19:44:50
|
Hi Markus, > I think there is a Problem in the xmms-plugin, but i cant find them. > It's a timing bug. > When i call a complex XMMS-Screen on my display, like: > ______________ > |Artist - Song | <- scrolling > |Playing | > |1:00-3:17 | > |===== | <- timebar > --------------------- Hey! This screen looks cool! Could you please provide your .conf? (good to know what cool designs are possible with my NextGeneration layout) > the screen will only refresh complete after ~6sec. 6 secs? strange... > I think that lcd4linux is rehasing the informatiion file for each value. > So i've played with the hash-age value in the plugin_xmms.c file. > when i set "if (age>0 && age<=20000)" the screnn will do all right for > 20 seconds, but dont refresh becaus of the long age of the hash. Right. > so i think after 20 seconds he must do a rehash of the file, allright? > so lcd4linux is rehashing the file after 20sec. > and now i think he had again 20 seconds, where he dont have to rehash, > but it seems that he now rehash the values every time when they were > called. so i think the age wouldn't be reset corretly. I took a quick look over the code, but I found no error here. Please try the following: in your plugin_xmms.c, at line 96, add a line between if (age>0 && age<=100) return 0; and // Open Filestream for '/tmp/xmms-info' which reads debug ("DEBUG: re-reading /tmp/xmms-info..."); and start lcd4linux with -F -vv it should print out the debug message every time the file is re-read. You could add other debug messages at certain points, too. the debug() functions acts just like a printf(), that means you can print parameters, too: debug ("Hi %s", name) bye, Michael -- Michael Reinelt Tel: +43 676 3079941 Geisslergasse 4 Fax: +43 316 692343 A-8045 Graz, Austria e-mail: re...@eu... |