From: Braden M. <br...@us...> - 2007-03-13 07:38:27
|
Update of /cvsroot/openvrml/openvrml/src/openvrml-player In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv19340/src/openvrml-player Modified Files: Tag: OpenVRML-0_16-BRANCH player.cpp Log Message: Set CURLOPT_FAILONERROR to "true" for easy handles. Index: player.cpp =================================================================== RCS file: /cvsroot/openvrml/openvrml/src/openvrml-player/player.cpp,v retrieving revision 1.1.2.15 retrieving revision 1.1.2.16 diff -C2 -d -r1.1.2.15 -r1.1.2.16 *** player.cpp 13 Mar 2007 07:22:08 -0000 1.1.2.15 --- player.cpp 13 Mar 2007 07:38:26 -0000 1.1.2.16 *************** *** 690,704 **** CURLcode setopt_result; setopt_result = curl_easy_setopt(handle, CURLOPT_URL, stream_data.url()); ! OPENVRML_PLAYER_CURL_EASY_RETURN_VAL_IF_ERROR(setopt_result, false); setopt_result = curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, openvrml_player_curl_write); ! OPENVRML_PLAYER_CURL_EASY_RETURN_VAL_IF_ERROR(setopt_result, false); setopt_result = curl_easy_setopt(handle, CURLOPT_WRITEDATA, &stream_data); ! OPENVRML_PLAYER_CURL_EASY_RETURN_VAL_IF_ERROR(setopt_result, false); CURLSource * const curl_source = --- 690,711 ---- CURLcode setopt_result; setopt_result = curl_easy_setopt(handle, + CURLOPT_FAILONERROR, true); + OPENVRML_PLAYER_CURL_EASY_RETURN_VAL_IF_ERROR(setopt_result, + false); + setopt_result = curl_easy_setopt(handle, CURLOPT_URL, stream_data.url()); ! OPENVRML_PLAYER_CURL_EASY_RETURN_VAL_IF_ERROR(setopt_result, ! false); setopt_result = curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, openvrml_player_curl_write); ! OPENVRML_PLAYER_CURL_EASY_RETURN_VAL_IF_ERROR(setopt_result, ! false); setopt_result = curl_easy_setopt(handle, CURLOPT_WRITEDATA, &stream_data); ! OPENVRML_PLAYER_CURL_EASY_RETURN_VAL_IF_ERROR(setopt_result, ! false); CURLSource * const curl_source = |