Skip to content

Commit 023991d

Browse files
committed
vcap/rtsp: suppress arg type warning
libcurl has some weird typecheck that triggers a warning if argument of type int is passed to long
1 parent 4051e20 commit 023991d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/video_capture/rtsp.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Martin German <[email protected]>
44
*
55
* Copyright (c) 2005-2010 Fundació i2CAT, Internet I Innovació Digital a Catalunya
6-
* Copyright (c) 2015-2024 CESNET
6+
* Copyright (c) 2015-2025 CESNET
77
*
88
* Redistribution and use in source and binary forms, with or without
99
* modification, is permitted provided that the following conditions
@@ -773,7 +773,7 @@ static CURL *init_curl() {
773773
fprintf(stderr, "[rtsp] curl_easy_init() failed\n");
774774
return NULL;
775775
}
776-
my_curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1, );
776+
my_curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1L, );
777777
return curl;
778778
}
779779

@@ -869,7 +869,7 @@ init_rtsp(struct rtsp_state *s) {
869869
//THIS AUDIO PORTS ARE AS DEFAULT UG AUDIO PORTS BUT AREN'T RELATED...
870870
snprintf(Atransport, sizeof Atransport, "RTP/AVP;unicast;client_port=%d-%d", port+2, port + 3);
871871

872-
my_curl_easy_setopt(s->curl, CURLOPT_NOSIGNAL, 1, goto error); //This tells curl not to use any functions that install signal handlers or cause signals to be sent to your process.
872+
my_curl_easy_setopt(s->curl, CURLOPT_NOSIGNAL, 1L, goto error); //This tells curl not to use any functions that install signal handlers or cause signals to be sent to your process.
873873
//my_curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, 1);
874874
my_curl_easy_setopt(s->curl, CURLOPT_VERBOSE,
875875
log_level >= LOG_LEVEL_DEBUG ? 1L : 0L, goto error);

0 commit comments

Comments
 (0)