Monitor: don't display () if display name is not available

This commit is contained in:
李通洲
2024-11-05 10:01:43 +08:00
parent 211fd4b197
commit 40671c78f1
+3 -1
View File
@@ -29,7 +29,9 @@ void ffPrintMonitor(FFMonitorOptions* options)
ffStrbufClear(&key);
if(options->moduleArgs.key.length == 0)
{
ffStrbufAppendF(&key, "%s (%s)", FF_MONITOR_MODULE_NAME, display->name.chars);
ffStrbufAppendS(&key, FF_MONITOR_MODULE_NAME);
if (display->name.length > 0)
ffStrbufAppendF(&key, " (%s)", display->name.chars);
}
else
{