Display: don't print display type twice

This commit is contained in:
李通洲
2023-10-21 12:10:12 +08:00
parent f61794ea70
commit debb5d8ad1
+2 -3
View File
@@ -49,9 +49,8 @@ void ffPrintDisplay(FFDisplayOptions* options)
ffStrbufClear(&key);
if(options->moduleArgs.key.length == 0)
{
const char* subkey = result->name.length ? result->name.chars : displayType;
if (subkey)
ffStrbufAppendF(&key, "%s (%s)", FF_DISPLAY_MODULE_NAME, subkey);
if (result->name.length)
ffStrbufAppendF(&key, "%s (%s)", FF_DISPLAY_MODULE_NAME, result->name.chars);
else if (moduleIndex > 0)
ffStrbufAppendF(&key, "%s (%d)", FF_DISPLAY_MODULE_NAME, moduleIndex);
else