summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2020-05-05 07:58:48 -0600
committerJohn Stebbins <[email protected]>2020-05-05 07:58:48 -0600
commit6fbe60b266fed099f49616ecef34db88b6bb3f4b (patch)
tree98683d9f2d7b4c30b4c957329d28db15a0f2570f
parentf0ab693c651ce59c6e5f96746eba0950cab4a6d6 (diff)
preset: fix recursive searches for preset name
I fixed an earlier problem with searches for a full preset path. Turns out there were actually 2 bugs that the first bug concealed.
-rw-r--r--libhb/preset.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libhb/preset.c b/libhb/preset.c
index 898dd062d..e771ded86 100644
--- a/libhb/preset.c
+++ b/libhb/preset.c
@@ -162,6 +162,10 @@ static int do_preset_search(hb_value_t *preset, preset_do_context_t *do_ctx)
{
ctx->last_match_idx = -1;
}
+ if (ctx->recurse && result == PRESET_DO_SKIP)
+ {
+ return PRESET_DO_NEXT;
+ }
return result;
}