[mythtv-commits] [MythTV/mythtv] 3f5482: CEC: Re-write CECAdapter

Mark Kendall noreply at github.com
Fri Dec 27 14:23:43 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/MythTV/mythtv
  Commit: 3f54824a2e1bf36c4ebac55ffa369f933343538e
      https://github.com/MythTV/mythtv/commit/3f54824a2e1bf36c4ebac55ffa369f933343538e
  Author: Mark Kendall <mark.kendall at gmail.com>
  Date:   2019-12-27 (Fri, 27 Dec 2019)

  Changed paths:
    M mythtv/configure
    M mythtv/libs/libmythui/cecadapter.cpp
    M mythtv/libs/libmythui/cecadapter.h
    M mythtv/libs/libmythui/mythmainwindow.cpp

  Log Message:
  -----------
  CEC: Re-write CECAdapter

- bump minimum libcec version to 2
- remove private implementation - or more accurately remove the public
implementation and make the private implementation public
- remove large amounts of duplicated code
- remove extra thread - this was serving no purpose.
- remove all locking by making all of the callbacks static (i.e. no
reference to the actual adapter object) - this has a minor impact on
logging detail.
- try and use MythDisplay for the physical address (via the EDID).
MythDisplay is much better at finding the actual display in use, and
hence the correct physical address, if multiple displays are in use (and
libcec provides no OSX EDID implementation).
- open the cec device after the window has been created to ensure we get
the correct EDID (and recreate cec device after window re-init).




More information about the mythtv-commits mailing list