1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

avformat/internal: log underlying error with ff_rename failure

Signed-off-by: Aman Gupta <aman@tmm1.net>
Signed-off-by: wm4 <nfxjfg@googlemail.com>
This commit is contained in:
Aman Gupta
2017-12-22 15:17:15 -08:00
parent 5f4a32a6e3
commit 4c78bbd313

View File

@@ -542,7 +542,7 @@ static inline int ff_rename(const char *oldpath, const char *newpath, void *logc
if (rename(oldpath, newpath) == -1) { if (rename(oldpath, newpath) == -1) {
ret = AVERROR(errno); ret = AVERROR(errno);
if (logctx) 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; return ret;
} }