Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
external
ffmpeg
Commits
4bde56d1
Commit
4bde56d1
authored
Apr 12, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avio: deprecate url_exist in favor of avio_check.
parent
31317656
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
libavformat/avio.c
libavformat/avio.c
+2
-0
libavformat/avio.h
libavformat/avio.h
+3
-2
No files found.
libavformat/avio.c
View file @
4bde56d1
...
@@ -365,6 +365,7 @@ int ffurl_close(URLContext *h)
...
@@ -365,6 +365,7 @@ int ffurl_close(URLContext *h)
return
ret
;
return
ret
;
}
}
#if FF_API_OLD_AVIO
int
url_exist
(
const
char
*
filename
)
int
url_exist
(
const
char
*
filename
)
{
{
URLContext
*
h
;
URLContext
*
h
;
...
@@ -373,6 +374,7 @@ int url_exist(const char *filename)
...
@@ -373,6 +374,7 @@ int url_exist(const char *filename)
ffurl_close
(
h
);
ffurl_close
(
h
);
return
1
;
return
1
;
}
}
#endif
int
avio_check
(
const
char
*
url
,
int
flags
)
int
avio_check
(
const
char
*
url
,
int
flags
)
{
{
...
...
libavformat/avio.h
View file @
4bde56d1
...
@@ -339,13 +339,14 @@ attribute_deprecated int url_open_buf(AVIOContext **s, uint8_t *buf, int buf_siz
...
@@ -339,13 +339,14 @@ attribute_deprecated int url_open_buf(AVIOContext **s, uint8_t *buf, int buf_siz
/** return the written or read size */
/** return the written or read size */
attribute_deprecated
int
url_close_buf
(
AVIOContext
*
s
);
attribute_deprecated
int
url_close_buf
(
AVIOContext
*
s
);
#endif // FF_API_OLD_AVIO
/**
/**
* Return a non-zero value if the resource indicated by url
* Return a non-zero value if the resource indicated by url
* exists, 0 otherwise.
* exists, 0 otherwise.
* @deprecated Use avio_check instead.
*/
*/
int
url_exist
(
const
char
*
url
);
attribute_deprecated
int
url_exist
(
const
char
*
url
);
#endif // FF_API_OLD_AVIO
/**
/**
* Return AVIO_* access flags corresponding to the access permissions
* Return AVIO_* access flags corresponding to the access permissions
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment