Commit 51e30105 authored by Jun Zhao's avatar Jun Zhao Committed by Steven Liu

lavf/hls: Remove the dead code in parse_playlist()

Signed-off-by: 's avatarJun Zhao <mypopydev@gmail.com>
Reviewed-by: 's avatarSteven Liu <lq@onvideo.cn>
parent 9df784db
...@@ -743,7 +743,6 @@ static int parse_playlist(HLSContext *c, const char *url, ...@@ -743,7 +743,6 @@ static int parse_playlist(HLSContext *c, const char *url,
} }
if (!in) { if (!in) {
#if 1
AVDictionary *opts = NULL; AVDictionary *opts = NULL;
/* Some HLS servers don't like being sent the range header */ /* Some HLS servers don't like being sent the range header */
av_dict_set(&opts, "seekable", "0", 0); av_dict_set(&opts, "seekable", "0", 0);
...@@ -766,12 +765,6 @@ static int parse_playlist(HLSContext *c, const char *url, ...@@ -766,12 +765,6 @@ static int parse_playlist(HLSContext *c, const char *url,
c->playlist_pb = in; c->playlist_pb = in;
else else
close_in = 1; close_in = 1;
#else
ret = open_in(c, &in, url);
if (ret < 0)
return ret;
close_in = 1;
#endif
} }
if (av_opt_get(in, "location", AV_OPT_SEARCH_CHILDREN, &new_url) >= 0) if (av_opt_get(in, "location", AV_OPT_SEARCH_CHILDREN, &new_url) >= 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment