mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
hls: move hls_close above hls_read_header
This is needed for the following commit. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
This commit is contained in:
parent
5249706e9d
commit
a305e0e5c0
@ -1593,6 +1593,19 @@ static void update_noheader_flag(AVFormatContext *s)
|
||||
s->ctx_flags &= ~AVFMTCTX_NOHEADER;
|
||||
}
|
||||
|
||||
static int hls_close(AVFormatContext *s)
|
||||
{
|
||||
HLSContext *c = s->priv_data;
|
||||
|
||||
free_playlist_list(c);
|
||||
free_variant_list(c);
|
||||
free_rendition_list(c);
|
||||
|
||||
av_dict_free(&c->avio_opts);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int hls_read_header(AVFormatContext *s)
|
||||
{
|
||||
void *u = (s->flags & AVFMT_FLAG_CUSTOM_IO) ? NULL : s->pb;
|
||||
@ -2013,19 +2026,6 @@ static int hls_read_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
return AVERROR_EOF;
|
||||
}
|
||||
|
||||
static int hls_close(AVFormatContext *s)
|
||||
{
|
||||
HLSContext *c = s->priv_data;
|
||||
|
||||
free_playlist_list(c);
|
||||
free_variant_list(c);
|
||||
free_rendition_list(c);
|
||||
|
||||
av_dict_free(&c->avio_opts);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int hls_read_seek(AVFormatContext *s, int stream_index,
|
||||
int64_t timestamp, int flags)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user