curl: use CURL_SOCKET_BAD to ensure cross-platform

Solves this error in Windows build:
        ../ext/curl/gstcurlbasesink.c:1154:14: error: comparison of unsigned
        expression in '< 0' is always false [-Werror=type-limits]
        1154 |   if (curlfd < 0) {

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8615>
This commit is contained in:
Pablo García 2025-03-11 15:02:03 +01:00 committed by GStreamer Marge Bot
parent ee0f2a0bb2
commit 380a947155

View File

@ -1151,7 +1151,7 @@ gst_curl_base_sink_transfer_socket_cb (void *clientp, curl_socket_t curlfd,
g_assert (sink);
if (curlfd < 0) {
if (curlfd == CURL_SOCKET_BAD) {
/* signal an unrecoverable error to the library which will close the socket
and return CURLE_COULDNT_CONNECT
*/