From 6fbe60b266fed099f49616ecef34db88b6bb3f4b Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Tue, 5 May 2020 07:58:48 -0600 Subject: [PATCH] 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. --- libhb/preset.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libhb/preset.c b/libhb/preset.c index 898dd062da1c..e771ded861ac 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; }