Open mjm987 opened 3 years ago
May be it is a problem in libcec or the raspi kernel driver (?) but I had a quick look in this projects device.cpp file on function _Device_ison(Device * self) and saw that a reference counting is done on a local variable. Isn't this wrong?
No, it's not wrong. Py_INCREF() is called on either Py_True or Py_False, which is the same thing PyRETURN* macros do.
ok, thanks for the explanation. Because _ison() does not work reliable on my TV, I added a cec handler in which I check all events recevied for a power standby event. Is there a better solution? Eg. is it possible to set a event filter?
When using is_on() on a Raspberry Pi, the cec driver sometimes freezes completely so a reboot of the Raspi is needed to recover cec functionality. Possibly this crash is caused when my TV does not respond to the request. May be it is a problem in libcec or the raspi kernel driver (?) but I had a quick look in this projects device.cpp file on function _Device_ison(Device * self) and saw that a reference counting is done on a local variable. Isn't this wrong?
I suggest following correction: