Mailing List Archive

[MythTV/mythtv] 10b529: Crash in libCEC on mythfrontend GUI rebuild
Branch: refs/heads/master
Home: https://github.com/MythTV/mythtv
Commit: 10b5291b832bc89ce726c5b53ac87ef738c2c3cd
https://github.com/MythTV/mythtv/commit/10b5291b832bc89ce726c5b53ac87ef738c2c3cd
Author: Klaas de Waal <kdewaal@mythtv.org>
Date: 2021-02-04 (Thu, 04 Feb 2021)

Changed paths:
M mythtv/libs/libmythui/devices/mythcecadapter.cpp

Log Message:
-----------
Crash in libCEC on mythfrontend GUI rebuild

Fix mythfrontend crash in GUI rebuild due to a theme change or due
to a change in the window size. This happens only when mythfrontend
is used with a monitor or a TV that does not support CEC.
In that case the CEC library is closed after startup but due
to a bug in libcec/cecloader.h the handle to libcec.so is not cleared.
On theme change or window resize the GUI is rebuilt and the CEC
library is opened a second time. This uses the now-invalid handle
and this causes the crash.
The real solution is to fix libcec.
For now the problem is solved by not closing the CEC library so that
the next time the handle is still valid.
See MythTV issue #299 and Pulse-Eight/libcec issue #555 on Github.

Fixes #299


_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits