[FFmpeg-cvslog] avformat/internal: log underlying error with ff_rename failure

Aman Gupta git at videolan.org
Sat Dec 23 04:01:37 EET 2017


ffmpeg | branch: master | Aman Gupta <aman at tmm1.net> | Fri Dec 22 15:17:15 2017 -0800| [4c78bbd3136a43347a112dd45ac60685c61bf425] | committer: Aman Gupta

avformat/internal: log underlying error with ff_rename failure

Signed-off-by: Aman Gupta <aman at tmm1.net>
Signed-off-by: wm4 <nfxjfg at googlemail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4c78bbd3136a43347a112dd45ac60685c61bf425
---

 libavformat/internal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/internal.h b/libavformat/internal.h
index 36a57214ce..de4b784634 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -542,7 +542,7 @@ static inline int ff_rename(const char *oldpath, const char *newpath, void *logc
     if (rename(oldpath, newpath) == -1) {
         ret = AVERROR(errno);
         if (logctx)
-            av_log(logctx, AV_LOG_ERROR, "failed to rename file %s to %s\n", oldpath, newpath);
+            av_log(logctx, AV_LOG_ERROR, "failed to rename file %s to %s: %s\n", oldpath, newpath, av_err2str(ret));
     }
     return ret;
 }



More information about the ffmpeg-cvslog mailing list