mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-16 04:32:47 +02:00
avformat/hlsenc: respect io_open set in AVFormatContext
io_open_default() will call internal impl if needed, don't call it directly. Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
This commit is contained in:
@@ -1170,9 +1170,7 @@ static int parse_playlist(AVFormatContext *s, const char *url, VariantStream *vs
|
||||
const char *end;
|
||||
double discont_program_date_time = 0;
|
||||
|
||||
if ((ret = ffio_open_whitelist(&in, url, AVIO_FLAG_READ,
|
||||
&s->interrupt_callback, NULL,
|
||||
s->protocol_whitelist, s->protocol_blacklist)) < 0)
|
||||
if ((ret = s->io_open(s, &in, url, AVIO_FLAG_READ, NULL)) < 0)
|
||||
return ret;
|
||||
|
||||
ff_get_chomp_line(in, line, sizeof(line));
|
||||
@@ -1282,7 +1280,7 @@ static int parse_playlist(AVFormatContext *s, const char *url, VariantStream *vs
|
||||
}
|
||||
|
||||
fail:
|
||||
avio_close(in);
|
||||
ff_format_io_close(s, &in);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user