Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
727c7aa0
Commit
727c7aa0
authored
Mar 31, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avio: deprecate url_get_filename().
URLContext.filename should be used directly.
parent
5958df34
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
13 deletions
+5
-13
avio.c
libavformat/avio.c
+4
-6
avio.h
libavformat/avio.h
+1
-7
No files found.
libavformat/avio.c
View file @
727c7aa0
...
...
@@ -212,6 +212,10 @@ int url_get_max_packet_size(URLContext *h)
{
return
h
->
max_packet_size
;
}
void
url_get_filename
(
URLContext
*
h
,
char
*
buf
,
int
buf_size
)
{
av_strlcpy
(
buf
,
h
->
filename
,
buf_size
);
}
#endif
#define URL_SCHEME_CHARS \
...
...
@@ -372,12 +376,6 @@ int ffurl_get_file_handle(URLContext *h)
return
h
->
prot
->
url_get_file_handle
(
h
);
}
void
url_get_filename
(
URLContext
*
h
,
char
*
buf
,
int
buf_size
)
{
av_strlcpy
(
buf
,
h
->
filename
,
buf_size
);
}
static
int
default_interrupt_cb
(
void
)
{
return
0
;
...
...
libavformat/avio.h
View file @
727c7aa0
...
...
@@ -113,6 +113,7 @@ attribute_deprecated int url_close(URLContext *h);
attribute_deprecated
int64_t
url_filesize
(
URLContext
*
h
);
attribute_deprecated
int
url_get_file_handle
(
URLContext
*
h
);
attribute_deprecated
int
url_get_max_packet_size
(
URLContext
*
h
);
attribute_deprecated
void
url_get_filename
(
URLContext
*
h
,
char
*
buf
,
int
buf_size
);
#endif
/**
...
...
@@ -121,13 +122,6 @@ attribute_deprecated int url_get_max_packet_size(URLContext *h);
*/
int
url_exist
(
const
char
*
url
);
/**
* Copy the filename of the resource accessed by h to buf.
*
* @param buf_size size in bytes of buf
*/
void
url_get_filename
(
URLContext
*
h
,
char
*
buf
,
int
buf_size
);
/**
* The callback is called in blocking functions to test regulary if
* asynchronous interruption is needed. AVERROR_EXIT is returned
...
...
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