From: <Mar...@t-...> - 2004-01-26 21:16:10
|
Am 26.01.2004 20:44:40 schrieb(en) Michael Reinelt: > Hey! This screen looks cool! Could you please provide your .conf? > (good to know what cool designs are possible with my NextGeneration > layout) My Config file is in the attechment. > 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 > Ok i've put a debugmessage befor the "if (age>0 && age<=10000) return 0;" and after it: // reread every 100msec only age=hash_age(&xmms, NULL, NULL); debug("XMMS: Hash-age=%i", age); if (age>0 && age<=10000) return 0; debug("DEBUG: rehash XMMS-informations age=%i", age); I've set the rehash time so high because so it is better debuging. Here the Output from lcd4linux: plugin_xmms.c: XMMS: Hash-age=8670 plugin_xmms.c: XMMS: Hash-age=8670 plugin_xmms.c: XMMS: Hash-age=8670 plugin_xmms.c: XMMS: Hash-age=8670 plugin_xmms.c: XMMS: Hash-age=8670 plugin_xmms.c: XMMS: Hash-age=9178 plugin_xmms.c: XMMS: Hash-age=9178 plugin_xmms.c: XMMS: Hash-age=9178 plugin_xmms.c: XMMS: Hash-age=9178 plugin_xmms.c: XMMS: Hash-age=9178 plugin_xmms.c: XMMS: Hash-age=9690 plugin_xmms.c: XMMS: Hash-age=9690 plugin_xmms.c: XMMS: Hash-age=9690 plugin_xmms.c: XMMS: Hash-age=9690 plugin_xmms.c: XMMS: Hash-age=9690 plugin_xmms.c: XMMS: Hash-age=10198 plugin_xmms.c: DEBUG: rehash XMMS-informations age=10198 plugin_xmms.c: XMMS: Hash-age=11111 plugin_xmms.c: DEBUG: rehash XMMS-informations age=11111 plugin_xmms.c: XMMS: Hash-age=12119 plugin_xmms.c: DEBUG: rehash XMMS-informations age=12119 plugin_xmms.c: XMMS: Hash-age=13130 plugin_xmms.c: DEBUG: rehash XMMS-informations age=13130 plugin_xmms.c: XMMS: Hash-age=14141 plugin_xmms.c: DEBUG: rehash XMMS-informations age=14141 plugin_xmms.c: XMMS: Hash-age=15659 plugin_xmms.c: DEBUG: rehash XMMS-informations age=15659 plugin_xmms.c: XMMS: Hash-age=16159 plugin_xmms.c: DEBUG: rehash XMMS-informations age=16159 plugin_xmms.c: XMMS: Hash-age=17170 plugin_xmms.c: DEBUG: rehash XMMS-informations age=17170 plugin_xmms.c: XMMS: Hash-age=18180 plugin_xmms.c: DEBUG: rehash XMMS-informations age=18180 plugin_xmms.c: XMMS: Hash-age=19190 plugin_xmms.c: DEBUG: rehash XMMS-informations age=19190 When the Timer hits the 10000sec he begins the reread everytime the value is called. Can you implement a own function to set the age to zero? This would made the code more transparent and better to understand, i think. So Long, Markus PS: My next Plugin is waiting in my development-directory. It will be able to read RDF-Newstickers from the web. but we should first fix the Xmms/hash-problem. If this is done i will finish my new plugin, |