diff --git a/ADApp/pluginSrc/NDPluginFile.cpp b/ADApp/pluginSrc/NDPluginFile.cpp index af06d628a..ac692fd6a 100644 --- a/ADApp/pluginSrc/NDPluginFile.cpp +++ b/ADApp/pluginSrc/NDPluginFile.cpp @@ -388,6 +388,7 @@ void NDPluginFile::freeCaptureBuffer() { NDArray *pArray; + setIntegerParam(NDFileNumCaptured, 0); if (pCapture.size() == 0) return; /* Free the capture buffer */ for (size_t i=0; irelease(); } pCapture.clear(); - setIntegerParam(NDFileNumCaptured, 0); } /** Handles the logic for when NDFileCapture changes state, starting or stopping capturing or streaming NDArrays