diff --git a/samples/uvc/camera.cc b/samples/uvc/camera.cc index 4bf98cf..ac20e03 100644 --- a/samples/uvc/camera.cc +++ b/samples/uvc/camera.cc @@ -115,6 +115,10 @@ int main(int argc, char *argv[]) { std::unique_lock lock(mtx); if (frame == nullptr) { frame = std::make_shared(); + } else { + if (frame->continuation) { + frame->continuation(); + } } frame->data = data; // not copy here frame->continuation = continuation;