Update of /cvsroot/openvrml/openvrml/src/openvrml-player
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv19372/src/openvrml-player
Modified Files:
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.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** player.cpp 13 Mar 2007 07:23:15 -0000 1.16
--- player.cpp 13 Mar 2007 07:38:37 -0000 1.17
***************
*** 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 =
|