]> granicus.if.org Git - handbrake/commitdiff
presets: fix preset search by name
authorjstebbins <jstebbins.hb@gmail.com>
Thu, 13 Aug 2015 16:33:30 +0000 (16:33 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Thu, 13 Aug 2015 16:33:30 +0000 (16:33 +0000)
It was not continuing if it failed to find the preset in the first
folder

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7401 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/preset.c

index e1097283e536392a9398e003049727165db6a287..ec0c9b26ca354877749e65859352afec2e7a6b45 100644 (file)
@@ -206,6 +206,8 @@ static int presets_do(preset_do_f do_func, hb_value_t *preset,
                 continue;
             }
             ii++;
+            if (result == PRESET_DO_SKIP)
+                return PRESET_DO_NEXT;
             if (result != PRESET_DO_NEXT)
                 return result;
         }