From 9d79526d6a99be971ed31521cdf57e6f28de768b Mon Sep 17 00:00:00 2001 From: John Zhao Date: Sat, 2 Jun 2018 16:04:11 +0800 Subject: [PATCH] Update uvc camera sample --- samples/uvc/camera.cc | 4 ++++ 1 file changed, 4 insertions(+) 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;