Browse Source

avformat/internal: log underlying error with ff_rename failure

Signed-off-by: Aman Gupta <aman@tmm1.net>
Signed-off-by: wm4 <nfxjfg@googlemail.com>
tags/n4.0
Aman Gupta 8 years ago
parent
commit
4c78bbd313
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/internal.h

+ 1
- 1
libavformat/internal.h View File

@@ -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;
}


Loading…
Cancel
Save