I tried also without delete cDeviceHook but it still crashed...
Well, the fixes are basically available in the plugin, as I copied the probe
method (and modified slightly to suit the plugin). Those are:
- The sysfs filenames are idVendor (subsystem_vendor) and idProduct
- You need to set strtoul() base as 16 as the files don't have 0x in front
of the hex
What about making this an utility method in VDR? Give device file name and
2010/4/5 Klaus Schmidinger <klaus.schmidin...@tvdr.de>
> From PLUGINS.html:
> A plugin that creates a derived cDeviceHook ...
> shall not delete this object. It will be automatically deleted when the
> program ends
> I have added a similar note to device.h now.
> > ...
> > - The sysfs probe code in full feature card plugin is buggy :-)
> Would you mind posting a patch that fixes this?
vdr mailing list