Minor corrections to cURL code

This commit is contained in:
Kfir Itzhak 2014-06-06 09:35:02 +03:00
parent caa0cb0fd5
commit a9cd6caeaf
1 changed files with 1 additions and 9 deletions

View File

@ -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();