Lines Matching refs:url
62 * the user supplied the url to a main playlist that only lists the variant
79 char *url;
101 char url[MAX_URL_SIZE];
237 av_freep(&segments[i]->url);
254 av_freep(&pls->init_sections[i]->url);
311 static struct playlist *new_playlist(HLSContext *c, const char *url,
322 ff_make_absolute_url(pls->url, sizeof(pls->url), base, url);
323 if (!pls->url[0]) {
346 const char *url, const char *base)
351 pls = new_playlist(c, url, base);
438 sec->url = av_strdup(ptr);
439 if (!sec->url) {
611 static int ensure_playlist(HLSContext *c, struct playlist **pls, const char *url)
615 if (!new_variant(c, NULL, url, NULL))
622 const char *url, AVDictionary **options)
631 ret = ff_http_do_new_request2(uc, url, options);
639 static int open_url(AVFormatContext *s, AVIOContext **pb, const char *url,
648 if (av_strstart(url, "crypto", NULL)) {
649 if (url[6] == '+' || url[6] == ':')
650 proto_name = avio_find_protocol_name(url + 7);
651 } else if (av_strstart(url, "data", NULL)) {
652 if (url[4] == '+' || url[4] == ':')
653 proto_name = avio_find_protocol_name(url + 5);
657 proto_name = avio_find_protocol_name(url);
664 if (strcmp(c->allowed_extensions, "ALL") && !av_match_ext(url, c->allowed_extensions)) {
668 url);
678 if (!strncmp(proto_name, url, strlen(proto_name)) && url[strlen(proto_name)] == ':')
680 else if (av_strstart(url, "crypto", NULL) && !strncmp(proto_name, url + 7, strlen(proto_name)) && url[7 + strlen(proto_name)] == ':')
682 else if (av_strstart(url, "data", NULL) && !strncmp(proto_name, url + 5, strlen(proto_name)) && url[5 + strlen(proto_name)] == ':')
684 else if (strcmp(proto_name, "file") || !strncmp(url, "file,", 5))
691 ret = open_url_keepalive(c->ctx, pb, url, &tmp);
698 "keepalive request failed for '%s' with error: '%s' when opening url, retrying with new connection\n",
699 url, av_err2str(ret));
702 ret = s->io_open(s, pb, url, AVIO_FLAG_READ, &tmp);
705 ret = s->io_open(s, pb, url, AVIO_FLAG_READ, &tmp);
726 static int parse_playlist(HLSContext *c, const char *url,
744 int is_http = av_strstart(url, "http", NULL);
751 ret = open_url_keepalive(c->ctx, &c->playlist_pb, url, NULL);
758 url, av_err2str(ret));
770 ret = c->ctx->io_open(c->ctx, &in, url, AVIO_FLAG_READ, &opts);
782 url = new_url;
826 new_rendition(c, &info, url);
829 ret = ensure_playlist(c, &pls, url);
840 ret = ensure_playlist(c, &pls, url);
851 ret = ensure_playlist(c, &pls, url);
860 ret = ensure_playlist(c, &pls, url);
865 cur_init_section = new_init_section(pls, &info, url);
880 ff_make_absolute_url(tmp_str, sizeof(tmp_str), url, key);
898 ret = ensure_playlist(c, &pls, url);
927 if (!new_variant(c, &variant_info, line, url)) {
935 ret = ensure_playlist(c, &pls, url);
952 ff_make_absolute_url(tmp_str, sizeof(tmp_str), url, key);
968 ff_make_absolute_url(tmp_str, sizeof(tmp_str), url, line);
976 seg->url = av_strdup(tmp_str);
977 if (!seg->url) {
986 " set to default value to 1ms.\n", seg->url);
1291 av_log(pls->parent, AV_LOG_VERBOSE, "HLS request for url '%s', offset %"PRId64", playlist %d\n",
1292 seg->url, seg->url_offset, pls->index);
1313 char iv[33], key[33], url[MAX_URL_SIZE];
1316 if (strstr(seg->url, "://"))
1317 snprintf(url, sizeof(url), "crypto+%s", seg->url);
1319 snprintf(url, sizeof(url), "crypto:%s", seg->url);
1324 ret = open_url(pls->parent, in, url, &c->avio_opts, opts, &is_http);
1330 ret = open_url(pls->parent, in, seg->url, &c->avio_opts, opts, &is_http);
1346 av_log(pls->parent, AV_LOG_ERROR, "Unable to seek to offset %"PRId64" of HLS segment '%s'\n", seg->url_offset, seg->url);
1490 v->index, v->url);
1504 if ((ret = parse_playlist(c, v->url, v, NULL)) < 0) {
1583 seg && seg->key_type == KEY_NONE && av_strstart(seg->url, "http", NULL)) {
1616 seg->key_type == KEY_NONE && av_strstart(seg->url, "http", NULL)) {
1721 parse_playlist(c, pls->url, pls, NULL);
1789 static int nested_io_open(AVFormatContext *s, AVIOContext **pb, const char *url,
1795 s->url, url);
1942 if ((ret = parse_playlist(c, s->url, NULL, s->pb)) < 0)
1955 if ((ret = parse_playlist(c, pls->url, pls, NULL)) < 0) {
1956 av_log(s, AV_LOG_WARNING, "parse_playlist error %s [%s]\n", av_err2str(ret), pls->url);
1967 av_log(s, AV_LOG_WARNING, "Empty segment [%s]\n", c->variants[i]->playlists[0]->url);
2019 char *url;
2103 url = av_strdup(pls->segments[0]->url);
2104 ret = av_probe_input_buffer(&pls->pb.pub, &in_fmt, url, NULL, 0, 0);
2110 av_log(s, AV_LOG_ERROR, "Error when loading first segment '%s'\n", url);
2113 av_free(url);
2116 av_free(url);
2143 ret = avformat_open_input(&pls->ctx, pls->segments[0]->url, in_fmt, &options);