Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
cdc6a87f
Commit
cdc6a87f
authored
Apr 04, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avio: deprecate av_protocol_next().
parent
f8270bbf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
cmdutils.c
cmdutils.c
+8
-12
avio.c
libavformat/avio.c
+2
-0
avio.h
libavformat/avio.h
+3
-1
No files found.
cmdutils.c
View file @
cdc6a87f
...
@@ -653,20 +653,16 @@ void show_bsfs(void)
...
@@ -653,20 +653,16 @@ void show_bsfs(void)
void
show_protocols
(
void
)
void
show_protocols
(
void
)
{
{
URLProtocol
*
up
=
NULL
;
void
*
opaque
=
NULL
;
const
char
*
name
;
printf
(
"Supported file protocols:
\n
"
printf
(
"Supported file protocols:
\n
"
"I.. = Input supported
\n
"
"Input:
\n
"
);
".O. = Output supported
\n
"
while
((
name
=
avio_enum_protocols
(
&
opaque
,
0
)))
"..S = Seek supported
\n
"
printf
(
"%s
\n
"
,
name
);
"FLAGS NAME
\n
"
printf
(
"Output:
\n
"
);
"-----
\n
"
);
while
((
name
=
avio_enum_protocols
(
&
opaque
,
1
)))
while
((
up
=
av_protocol_next
(
up
)))
printf
(
"%s
\n
"
,
name
);
printf
(
"%c%c%c %s
\n
"
,
up
->
url_read
?
'I'
:
'.'
,
up
->
url_write
?
'O'
:
'.'
,
up
->
url_seek
?
'S'
:
'.'
,
up
->
name
);
}
}
void
show_filters
(
void
)
void
show_filters
(
void
)
...
...
libavformat/avio.c
View file @
cdc6a87f
...
@@ -51,11 +51,13 @@ static int default_interrupt_cb(void);
...
@@ -51,11 +51,13 @@ static int default_interrupt_cb(void);
URLProtocol
*
first_protocol
=
NULL
;
URLProtocol
*
first_protocol
=
NULL
;
int
(
*
url_interrupt_cb
)(
void
)
=
default_interrupt_cb
;
int
(
*
url_interrupt_cb
)(
void
)
=
default_interrupt_cb
;
#if FF_API_OLD_AVIO
URLProtocol
*
av_protocol_next
(
URLProtocol
*
p
)
URLProtocol
*
av_protocol_next
(
URLProtocol
*
p
)
{
{
if
(
p
)
return
p
->
next
;
if
(
p
)
return
p
->
next
;
else
return
first_protocol
;
else
return
first_protocol
;
}
}
#endif
const
char
*
avio_enum_protocols
(
void
**
opaque
,
int
output
)
const
char
*
avio_enum_protocols
(
void
**
opaque
,
int
output
)
{
{
...
...
libavformat/avio.h
View file @
cdc6a87f
...
@@ -170,12 +170,14 @@ extern URLProtocol *first_protocol;
...
@@ -170,12 +170,14 @@ extern URLProtocol *first_protocol;
extern
URLInterruptCB
*
url_interrupt_cb
;
extern
URLInterruptCB
*
url_interrupt_cb
;
#endif
#endif
#if FF_API_OLD_AVIO
/**
/**
* If protocol is NULL, returns the first registered protocol,
* If protocol is NULL, returns the first registered protocol,
* if protocol is non-NULL, returns the next registered protocol after protocol,
* if protocol is non-NULL, returns the next registered protocol after protocol,
* or NULL if protocol is the last one.
* or NULL if protocol is the last one.
*/
*/
URLProtocol
*
av_protocol_next
(
URLProtocol
*
p
);
attribute_deprecated
URLProtocol
*
av_protocol_next
(
URLProtocol
*
p
);
#endif
#if FF_API_REGISTER_PROTOCOL
#if FF_API_REGISTER_PROTOCOL
/**
/**
...
...
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