@@ -17,9 +17,7 @@ const char* ffOptionsParseGeneralJsonConfig(FFOptionsGeneral* options, yyjson_va
1717 {
1818 const char * key = yyjson_get_str (key_ );
1919
20- if (ffStrEqualsIgnCase (key , "allowSlowOperations" ))
21- options -> allowSlowOperations = yyjson_get_bool (val );
22- else if (ffStrEqualsIgnCase (key , "thread" ) || ffStrEqualsIgnCase (key , "multithreading" ))
20+ if (ffStrEqualsIgnCase (key , "thread" ) || ffStrEqualsIgnCase (key , "multithreading" ))
2321 options -> multithreading = yyjson_get_bool (val );
2422 else if (ffStrEqualsIgnCase (key , "processingTimeout" ))
2523 options -> processingTimeout = (int32_t ) yyjson_get_int (val );
@@ -42,6 +40,8 @@ const char* ffOptionsParseGeneralJsonConfig(FFOptionsGeneral* options, yyjson_va
4240 return "Property `general.stat` has been changed to `display.stat`" ;
4341 else if (ffStrEqualsIgnCase (key , "pipe "))
4442 return "Property `general.pipe` has been changed to `display.pipe`" ;
43+ else if (ffStrEqualsIgnCase (key , "allowSlowOperations "))
44+ return "Property `general.allowSlowOperations` has been obsoleted. See CHANGELOG for detail" ;
4545
4646 else
4747 return "Unknown general property" ;
@@ -52,9 +52,7 @@ const char* ffOptionsParseGeneralJsonConfig(FFOptionsGeneral* options, yyjson_va
5252
5353bool ffOptionsParseGeneralCommandLine (FFOptionsGeneral * options , const char * key , const char * value )
5454{
55- if (ffStrEqualsIgnCase (key , "--allow-slow-operations" ))
56- options -> allowSlowOperations = ffOptionParseBoolean (value );
57- else if (ffStrEqualsIgnCase (key , "--thread" ) || ffStrEqualsIgnCase (key , "--multithreading" ))
55+ if (ffStrEqualsIgnCase (key , "--thread" ) || ffStrEqualsIgnCase (key , "--multithreading" ))
5856 options -> multithreading = ffOptionParseBoolean (value );
5957 else if (ffStrEqualsIgnCase (key , "--processing-timeout" ))
6058 options -> processingTimeout = ffOptionParseInt32 (key , value );
@@ -82,7 +80,6 @@ bool ffOptionsParseGeneralCommandLine(FFOptionsGeneral* options, const char* key
8280void ffOptionsInitGeneral (FFOptionsGeneral * options )
8381{
8482 options -> processingTimeout = 1000 ;
85- options -> allowSlowOperations = false;
8683 options -> multithreading = true;
8784
8885 #if defined(__linux__ ) || defined(__FreeBSD__ )
@@ -110,9 +107,6 @@ void ffOptionsGenerateGeneralJsonConfig(FFOptionsGeneral* options, yyjson_mut_do
110107
111108 yyjson_mut_val * obj = yyjson_mut_obj (doc );
112109
113- if (options -> allowSlowOperations != defaultOptions .allowSlowOperations )
114- yyjson_mut_obj_add_bool (doc , obj , "allowSlowOperations" , options -> allowSlowOperations );
115-
116110 if (options -> multithreading != defaultOptions .multithreading )
117111 yyjson_mut_obj_add_bool (doc , obj , "thread" , options -> multithreading );
118112
0 commit comments