فهرست منبع

Fix format_quality in presets

DarthSim 2 سال پیش
والد
کامیت
339b25dbd9
2فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 1 0
      CHANGELOG.md
  2. 2 3
      options/presets.go

+ 1 - 0
CHANGELOG.md

@@ -3,6 +3,7 @@
 ## [Unreleased]
 ### Fix
 - Fix memory bloat in some cases.
+- Fix `format_quality` usage in presets.
 
 ## [3.7.0] - 2022-07-27
 ### Add

+ 2 - 3
options/presets.go

@@ -57,10 +57,9 @@ func parsePreset(presetStr string) error {
 }
 
 func ValidatePresets() error {
-	var po ProcessingOptions
-
 	for name, opts := range presets {
-		if err := applyURLOptions(&po, opts); err != nil {
+		po := NewProcessingOptions()
+		if err := applyURLOptions(po, opts); err != nil {
 			return fmt.Errorf("Error in preset `%s`: %s", name, err)
 		}
 	}