From 25878492bc5e9bbb1f8c21e69c4d744b4cc6576c Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Mon, 29 Oct 2018 23:26:32 +0200 Subject: [PATCH] Remove streaming callback workaround. * All sensors support streaming callback now. --- src/uvc/src/main.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/uvc/src/main.c b/src/uvc/src/main.c index c35463f0e..4f750352f 100644 --- a/src/uvc/src/main.c +++ b/src/uvc/src/main.c @@ -98,10 +98,6 @@ bool streaming_cb(image_t *image) } } - // TODO: This is a hack for old snapshot functions that don't support - // the streaming mode yet, we call the streaming function explicitly. - image->pixels = NULL; - if (g_uvc_stream_status != 2 || frame_index != videoCommitControl.bFrameIndex || format_index != videoCommitControl.bFormatIndex) { @@ -190,11 +186,6 @@ int main() image_t image; image.pixels = NULL; sensor.snapshot(&sensor, &image, streaming_cb); - if (image.pixels) { - // TODO: This is a hack for old snapshot functions that don't support - // the streaming mode yet, we call the streaming function explicitly. - streaming_cb(&image); - } } } }