Skip to content

Commit

Permalink
vcap/rtsp: clang-tidy complain fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinPulec committed Jul 19, 2024
1 parent 65a57eb commit e365a88
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/video_capture/rtsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ static const char *cstr_identity(const char *c) {
/* error handling macros */
#define my_curl_easy_setopt_ex(l, A, B, C, action_fail) \
{ \
CURLcode res = CURLE_OK; \
log_msg(l, MOD_NAME "Setting " #B " to %s\n", get_s(C)); \
if ((res = curl_easy_setopt((A), (B), (C))) != CURLE_OK){ \
const CURLcode res = curl_easy_setopt((A), (B), (C)); \
if (res != CURLE_OK) { \
log_msg(LOG_LEVEL_ERROR, MOD_NAME "curl_easy_setopt(%s, %s, %s) failed: %s (%d)\n", #A, #B, #C, curl_easy_strerror(res), res); \
printf("[rtsp error] could not configure rtsp capture properly, \n\t\tplease check your parameters. \nExiting...\n\n"); \
action_fail; \
Expand All @@ -132,9 +132,9 @@ static const char *cstr_identity(const char *c) {

#define my_curl_easy_perform_ex(l, A, action_fail) \
{ \
CURLcode res = CURLE_OK; \
log_msg(l, "Performing cURL operation(s)\n"); \
if ((res = curl_easy_perform((A))) != CURLE_OK){ \
const CURLcode res = curl_easy_perform((A)); \
if (res != CURLE_OK) { \
log_msg(LOG_LEVEL_ERROR, MOD_NAME "[%s] curl_easy_perform(%s) failed: %s (%d)\n", __func__, #A, curl_easy_strerror(res), res); \
printf("[rtsp error] could not configure rtsp capture properly, \n\t\tplease check your parameters. \nExiting...\n\n"); \
action_fail; \
Expand Down

0 comments on commit e365a88

Please sign in to comment.