Skip to content

Commit

Permalink
preset: fix recursive searches for preset name
Browse files Browse the repository at this point in the history
I fixed an earlier problem with searches for a full preset path.  Turns
out there were actually 2 bugs that the first bug concealed.
  • Loading branch information
jstebbins committed May 5, 2020
1 parent f0ab693 commit 6fbe60b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libhb/preset.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6fbe60b

Please sign in to comment.