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
a6aa7a1a
Commit
a6aa7a1a
authored
Apr 08, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
applehttp: don't use deprecated url_ functions.
parent
d6bbe761
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
applehttp.c
libavformat/applehttp.c
+8
-8
No files found.
libavformat/applehttp.c
View file @
a6aa7a1a
...
...
@@ -113,7 +113,7 @@ static void free_variant_list(AppleHTTPContext *c)
av_free_packet
(
&
var
->
pkt
);
av_free
(
var
->
pb
.
buffer
);
if
(
var
->
input
)
url_close
(
var
->
input
);
ff
url_close
(
var
->
input
);
if
(
var
->
ctx
)
{
var
->
ctx
->
pb
=
NULL
;
av_close_input_file
(
var
->
ctx
);
...
...
@@ -291,18 +291,18 @@ reload:
goto
reload
;
}
ret
=
url_open
(
&
v
->
input
,
v
->
segments
[
v
->
cur_seq_no
-
v
->
start_seq_no
]
->
url
,
AVIO_RDONLY
);
ret
=
ff
url_open
(
&
v
->
input
,
v
->
segments
[
v
->
cur_seq_no
-
v
->
start_seq_no
]
->
url
,
AVIO_RDONLY
);
if
(
ret
<
0
)
return
ret
;
}
ret
=
url_read
(
v
->
input
,
buf
,
buf_size
);
ret
=
ff
url_read
(
v
->
input
,
buf
,
buf_size
);
if
(
ret
>
0
)
return
ret
;
if
(
ret
<
0
&&
ret
!=
AVERROR_EOF
)
return
ret
;
url_close
(
v
->
input
);
ff
url_close
(
v
->
input
);
v
->
input
=
NULL
;
v
->
cur_seq_no
++
;
...
...
@@ -435,7 +435,7 @@ static int recheck_discard_flags(AVFormatContext *s, int first)
av_log
(
s
,
AV_LOG_INFO
,
"Now receiving variant %d
\n
"
,
i
);
}
else
if
(
first
&&
!
v
->
cur_needed
&&
v
->
needed
)
{
if
(
v
->
input
)
url_close
(
v
->
input
);
ff
url_close
(
v
->
input
);
v
->
input
=
NULL
;
v
->
needed
=
0
;
changed
=
1
;
...
...
@@ -517,7 +517,7 @@ static int applehttp_read_seek(AVFormatContext *s, int stream_index,
struct
variant
*
var
=
c
->
variants
[
i
];
int64_t
pos
=
0
;
if
(
var
->
input
)
{
url_close
(
var
->
input
);
ff
url_close
(
var
->
input
);
var
->
input
=
NULL
;
}
av_free_packet
(
&
var
->
pkt
);
...
...
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