Skip to content

Commit

Permalink
source/source.cpp: fix broken dependency tracking
Browse files Browse the repository at this point in the history
Signed-off-by: akarin <[email protected]>
  • Loading branch information
AkarinVS committed Feb 2, 2023
1 parent 70a0f3e commit f254ac1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -464,12 +464,14 @@ static void VS_CC BoxBlurCreate(
}

for (int pass = 0; pass < vpasses; ++pass) {
vsapi->propSetNode(in_map, "clip", node, paReplace);
vsapi->createFilter(
in_map, out_map, "BlurV", BoxBlurVInit, BoxBlurVGetFrame, BoxBlurVFree,
fmParallel, 0, new BoxBlurVData{ node, radius }, core);

node = vsapi->propGetNode(out_map, "clip", 0, nullptr);
vsapi->clearMap(out_map);
vsapi->clearMap(in_map);
}

vsapi->freeMap(in_map);
Expand All @@ -496,12 +498,14 @@ static void VS_CC BoxBlurCreate(
}

for (int pass = 0; pass < hpasses; ++pass) {
vsapi->propSetNode(vtmp1, "clip", node, paReplace);
vsapi->createFilter(
vtmp1, vtmp2, "BlurV", BoxBlurVInit, BoxBlurVGetFrame, BoxBlurVFree,
fmParallel, 0, new BoxBlurVData{ node, radius }, core);

node = vsapi->propGetNode(vtmp2, "clip", 0, &err);
vsapi->clearMap(vtmp2);
vsapi->clearMap(vtmp1);
}

vsapi->propSetNode(vtmp2, "clip", node, paReplace);
Expand Down

0 comments on commit f254ac1

Please sign in to comment.