|
|
@ -487,7 +487,7 @@ int avio_check(const char *url, int flags) |
|
|
|
return ret; |
|
|
|
return ret; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
int avpriv_io_move(const char *url_src, const char *url_dst) |
|
|
|
int ffurl_move(const char *url_src, const char *url_dst) |
|
|
|
{ |
|
|
|
{ |
|
|
|
URLContext *h_src, *h_dst; |
|
|
|
URLContext *h_src, *h_dst; |
|
|
|
int ret = ffurl_alloc(&h_src, url_src, AVIO_FLAG_READ_WRITE, NULL); |
|
|
|
int ret = ffurl_alloc(&h_src, url_src, AVIO_FLAG_READ_WRITE, NULL); |
|
|
@ -509,7 +509,7 @@ int avpriv_io_move(const char *url_src, const char *url_dst) |
|
|
|
return ret; |
|
|
|
return ret; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
int avpriv_io_delete(const char *url) |
|
|
|
int ffurl_delete(const char *url) |
|
|
|
{ |
|
|
|
{ |
|
|
|
URLContext *h; |
|
|
|
URLContext *h; |
|
|
|
int ret = ffurl_alloc(&h, url, AVIO_FLAG_WRITE, NULL); |
|
|
|
int ret = ffurl_alloc(&h, url, AVIO_FLAG_WRITE, NULL); |
|
|
@ -661,7 +661,7 @@ int ff_check_interrupt(AVIOInterruptCB *cb) |
|
|
|
|
|
|
|
|
|
|
|
int ff_rename(const char *url_src, const char *url_dst, void *logctx) |
|
|
|
int ff_rename(const char *url_src, const char *url_dst, void *logctx) |
|
|
|
{ |
|
|
|
{ |
|
|
|
int ret = avpriv_io_move(url_src, url_dst); |
|
|
|
int ret = ffurl_move(url_src, url_dst); |
|
|
|
if (ret < 0) |
|
|
|
if (ret < 0) |
|
|
|
av_log(logctx, AV_LOG_ERROR, "failed to rename file %s to %s: %s\n", url_src, url_dst, av_err2str(ret)); |
|
|
|
av_log(logctx, AV_LOG_ERROR, "failed to rename file %s to %s: %s\n", url_src, url_dst, av_err2str(ret)); |
|
|
|
return ret; |
|
|
|
return ret; |
|
|
|