Skip to content

Commit

Permalink
Fix filter creation (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
random-patch-method authored Jun 17, 2024
1 parent be93c21 commit d7d6ad2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Source/Source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,8 @@ static void VS_CC dpidRawCreate(const VSMap *in, VSMap *out, void *userData, VSC
{d->node2, rpStrictSpatial},
};

vsapi->createVideoFilter(out, "DpidRaw", vsapi->getVideoInfo(d->node2), dpidGetframe, dpidNodeFree, fmParallel, deps, 2, d.release(), core);
vsapi->createVideoFilter(out, "DpidRaw", vsapi->getVideoInfo(d->node2), dpidGetframe, dpidNodeFree, fmParallel, deps, 2, d.get(), core);
d.release();
}


Expand Down Expand Up @@ -411,7 +412,8 @@ static void VS_CC dpidCreate(const VSMap *in, VSMap *out, void *userData, VSCore
{d->node2, rpStrictSpatial},
};

vsapi->createVideoFilter(out, "DpidRaw", vsapi->getVideoInfo(d->node2), dpidGetframe, dpidNodeFree, fmParallel, deps, 2, d.release(), core);
vsapi->createVideoFilter(out, "DpidRaw", vsapi->getVideoInfo(d->node2), dpidGetframe, dpidNodeFree, fmParallel, deps, 2, d.get(), core);
d.release();

vsapi->freeMap(vtmp2);
} catch (const std::string &error) {
Expand Down

0 comments on commit d7d6ad2

Please sign in to comment.