diff --git a/src/zm_curl_camera.cpp b/src/zm_curl_camera.cpp index 24beba412..da5f7180d 100644 --- a/src/zm_curl_camera.cpp +++ b/src/zm_curl_camera.cpp @@ -123,7 +123,6 @@ int cURLCamera::PreCapture() int cURLCamera::Capture( Image &image ) { bool frameComplete = false; - uint8_t* directbuffer; /* MODE_STREAM specific variables */ bool SubHeadersParsingComplete = false; @@ -131,13 +130,6 @@ int cURLCamera::Capture( Image &image ) std::string frame_content_type; bool need_more_data = false; - /* Request a writeable buffer of the target image */ - directbuffer = image.WriteBuffer(width, height, colours, subpixelorder); - if(directbuffer == NULL) { - Error("Failed requesting writeable buffer for the captured image"); - return (-1); - } - /* Grab the mutex to ensure exclusive access to the shared data */ lock(); @@ -384,7 +376,7 @@ size_t cURLCamera::header_callback( void *buffer, size_t size, size_t nmemb, voi void* cURLCamera::thread_func() { - int tRet; + long tRet; double dSize; c = curl_easy_init();