vcap/testcard2: improved font err msg

error was printed instead of font name - print both now
This commit is contained in:
Martin Pulec
2024-06-26 11:03:49 +02:00
parent 11f502cf46
commit bb24cb5c54

View File

@@ -429,7 +429,9 @@ void * vidcap_testcard2_thread(void *arg)
}
}
if(!font) {
log_msg(LOG_LEVEL_ERROR, MOD_NAME "Unable to load any usable font (last font tried: %s)!\n", TTF_GetError());
MSG(ERROR,
"Unable to load any usable font! Last font tried %s: %s\n",
font_path, TTF_GetError());
EXIT_THREAD
}
MSG(INFO, "Using font: %s\n", font_path);