mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
libavformat/file.c: 'file_delete()' and 'file_move()' require 'CONFIG_FILE_PROTOCOL'
This quashes 2 warnings when the 'file' protocol is not enabled. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
c3ef9e0277
commit
f040c1ec4e
@ -167,6 +167,8 @@ static int file_check(URLContext *h, int mask)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if CONFIG_FILE_PROTOCOL
|
||||||
|
|
||||||
static int file_delete(URLContext *h)
|
static int file_delete(URLContext *h)
|
||||||
{
|
{
|
||||||
#if HAVE_UNISTD_H
|
#if HAVE_UNISTD_H
|
||||||
@ -203,8 +205,6 @@ static int file_move(URLContext *h_src, URLContext *h_dst)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if CONFIG_FILE_PROTOCOL
|
|
||||||
|
|
||||||
static int file_open(URLContext *h, const char *filename, int flags)
|
static int file_open(URLContext *h, const char *filename, int flags)
|
||||||
{
|
{
|
||||||
FileContext *c = h->priv_data;
|
FileContext *c = h->priv_data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user