Update uvc camera sample
This commit is contained in:
parent
7451b6417d
commit
9d79526d6a
|
@ -115,6 +115,10 @@ int main(int argc, char *argv[]) {
|
||||||
std::unique_lock<std::mutex> lock(mtx);
|
std::unique_lock<std::mutex> lock(mtx);
|
||||||
if (frame == nullptr) {
|
if (frame == nullptr) {
|
||||||
frame = std::make_shared<struct frame>();
|
frame = std::make_shared<struct frame>();
|
||||||
|
} else {
|
||||||
|
if (frame->continuation) {
|
||||||
|
frame->continuation();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
frame->data = data; // not copy here
|
frame->data = data; // not copy here
|
||||||
frame->continuation = continuation;
|
frame->continuation = continuation;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user