diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-04-09 03:09:49 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-04-09 03:17:07 +0200 |
commit | d4d09329eef30787da699c7a397b00f6f96940bc (patch) | |
tree | 3605d4e30063b924254a373e270026bca6436f11 /libavformat/applehttp.c | |
parent | a61bc91d42945e6ccefef4867ef32d2073f8f8c7 (diff) | |
parent | 0c68c804196400de3c40c8849124b292ed62b99c (diff) | |
download | ffmpeg-d4d09329eef30787da699c7a397b00f6f96940bc.tar.gz |
Merge remote branch 'qatar/master'
* qatar/master:
lavf: bump minor and add an APIChanges entry for avformat cleanup
lavf: get rid of ffm-specific stuff in avformat.h
Not pulled: avio: deprecate av_protocol_next().
avio: add a function for iterating though protocol names.
lavf: rename a parameter of av_sdp_create from buff->buf
lavf: rename avf_sdp_create to av_sdp_create.
lavf: make av_guess_image2_codec internal
avio: make URLProtocol internal.
avio: make URLContext internal.
lavf: mark av_pkt_dump(_log) for remove on $next+1 bump.
lavf: use designated initializers for all protocols
applehttp: don't use deprecated url_ functions.
avio: move two ff_udp_* functions from avio_internal to url.h
asfdec: remove a forgotten declaration of nonexistent function
avio: deprecate the typedef for URLInterruptCB
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/applehttp.c')
-rw-r--r-- | libavformat/applehttp.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libavformat/applehttp.c b/libavformat/applehttp.c index 44a27a510e..7592dc3cc3 100644 --- a/libavformat/applehttp.c +++ b/libavformat/applehttp.c @@ -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); + ffurl_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 = ffurl_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 = ffurl_read(v->input, buf, buf_size); if (ret > 0) return ret; if (ret < 0 && ret != AVERROR_EOF) return ret; - url_close(v->input); + ffurl_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); + ffurl_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); + ffurl_close(var->input); var->input = NULL; } av_free_packet(&var->pkt); |