Set the device name from the CEC_OSD_NAME environment variable#62
Set the device name from the CEC_OSD_NAME environment variable#62christos-kakris wants to merge 3 commits intotrainman419:masterfrom
Conversation
|
For your consideration, I slightly simplified this commit. I made it silently truncate long names, replaced the snprintf() with a strncpy() and use the system defined LIBCEC_OSD_NAME_SIZE to restrict the length of the name. The change is here: master...retsyx:python-cec:master |
|
@retsyx Hello! I'm trying to use python-cec for a project of mine, and running into the issue of the project simply being unmaintained. I'm planning on creating my own fork specifically for my project (as that seems to be the best solution), and I was wondering if I may include your Adapter code within it under the same GPLv2 license. The fork is located at https://gitlab.com/spease/ironcast-cec and the purpose of it is provide CEC control for IronCast, which is a project whose goal is to provide a chromecast-esque open source experience for casting using DLNA. Thanks for your time! |
|
@ilar, sure, go ahead. |
I'm not a C++ programmer so I struggled with the correct way to achieve what I needed. So I've gone with the approach of an environment variable to set the device name in the initialisation code. I hope this is okay.