Skip to content
Snippets Groups Projects
Commit 4c78bbd3 authored by Aman Gupta's avatar Aman Gupta
Browse files

avformat/internal: log underlying error with ff_rename failure


Signed-off-by: default avatarAman Gupta <aman@tmm1.net>
Signed-off-by: default avatarwm4 <nfxjfg@googlemail.com>
parent 5f4a32a6
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment