Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set the device name from the CEC_OSD_NAME environment variable #62

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

christos-kakris
Copy link

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.

@retsyx
Copy link

retsyx commented May 6, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants