File tree 1 file changed +13
-3
lines changed
1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -124,11 +124,21 @@ void ffPrintDisplay(FFDisplayOptions* options)
124
124
if (inch > 1 )
125
125
ffStrbufAppendF (& buffer , " in %i\"" , (uint32_t ) (inch + 0.5 ));
126
126
127
- if (result -> type != FF_DISPLAY_TYPE_UNKNOWN )
128
- ffStrbufAppendS (& buffer , result -> type == FF_DISPLAY_TYPE_BUILTIN ? " [Built-in]" : " [External]" );
127
+ bool flag = false;
128
+ if (result -> type != FF_DISPLAY_TYPE_UNKNOWN )
129
+ {
130
+ ffStrbufAppendS (& buffer , result -> type == FF_DISPLAY_TYPE_BUILTIN ? " [Built-in" : " [External" );
131
+ flag = true;
132
+ }
129
133
130
134
if (result -> hdrStatus == FF_DISPLAY_HDR_STATUS_ENABLED )
131
- ffStrbufAppendS (& buffer , " [HDR]" );
135
+ {
136
+ ffStrbufAppendS (& buffer , flag ? ", HDR" : " [HDR" );
137
+ flag = true;
138
+ }
139
+
140
+ if (flag )
141
+ ffStrbufAppendS (& buffer , "]" );
132
142
133
143
if (moduleIndex > 0 && result -> primary )
134
144
ffStrbufAppendS (& buffer , " *" );
You can’t perform that action at this time.
0 commit comments