<div>Hi,</div><div><br></div><div>I tried also without delete cDeviceHook but it still crashed...</div><div><br></div>Well, the fixes are basically available in the plugin, as I copied the probe method (and modified slightly to suit the plugin). Those are:<div>
- The sysfs filenames are idVendor (subsystem_vendor) and idProduct (subsystem_device)</div><div>- You need to set strtoul() base as 16 as the files don't have 0x in front of the hex</div><div><br></div><div>What about making this an utility method in VDR? Give device file name and return id...</div>
<div><br></div><div><br></div><div>Teemu<br><br><div class="gmail_quote">2010/4/5 Klaus Schmidinger <span dir="ltr"><<a href="mailto:Klaus.Schmidinger@tvdr.de">Klaus.Schmidinger@tvdr.de</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">From PLUGINS.html:</div>
<br>
A plugin that creates a derived cDeviceHook ...<br>
shall not delete this object. It will be automatically deleted when the<br>
program ends<br>
<br>
I have added a similar note to device.h now.<br>
<br>
> ...<br>
<div class="im">> - The sysfs probe code in full feature card plugin is buggy :-)<br>
<br>
</div>Would you mind posting a patch that fixes this?<br>
<font color="#888888"><br>
Klaus<br>
</font><div><div></div><div class="h5"><br></div></div></blockquote></div></div>