Skip to content
Snippets Groups Projects
Commit a82ecdfa authored by Steve Lhomme's avatar Steve Lhomme
Browse files

decklink: simplify the mode string usage

The mode can never be NULL. If it was, autodetect is set to false so we never
reach this code.

We can optimize the strlen() calls with a single strnlen() call that will only
test up to 5 chars to check we don't have 3 or 4 chars.
parent fc6ade22
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment