This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit c40fc918166a73afc8c58a2260a0c1b8cf086849
Author:     Niklas Haas <[email protected]>
AuthorDate: Thu Jul 9 16:19:55 2026 +0200
Commit:     Niklas Haas <[email protected]>
CommitDate: Thu Sep 3 19:05:28 2026 +0000

    avformat/libcurl: log all unexpected curl errors
    
    Excludes the case of !c->stream_ok (e.g. the result of an HTTP error),
    since in this case the actual curl error code is likely just
    CURLE_WRITE_ERROR.
    
    Sponsored-by: nxtedition AB
    Signed-off-by: Niklas Haas <[email protected]>
---
 libavformat/libcurl.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/libavformat/libcurl.c b/libavformat/libcurl.c
index 334c33e432..dcd7d291fc 100644
--- a/libavformat/libcurl.c
+++ b/libavformat/libcurl.c
@@ -501,13 +501,16 @@ static void on_done(CurlContext *c, CURLcode code)
         return;
     }
 
+    if (c->stream_ok)
+        av_log(c->h, AV_LOG_WARNING, "%s\n", curl_easy_strerror(code));
+
     /* Resume seekable transfers after a recoverable error. */
     if (c->seekable && is_recoverable(code) &&
         c->retry_count < c->max_retries) {
         c->retry_count++;
         c->loop->num_retries++;
-        av_log(c->h, AV_LOG_WARNING, "%s, retrying (#%d) from %"PRId64"\n",
-               curl_easy_strerror(code), c->retry_count, c->request_start);
+        av_log(c->h, AV_LOG_WARNING, "Retrying (#%d) from %"PRId64"\n",
+               c->retry_count, c->request_start);
         start_request(c);
         return;
     }

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to