Lines Matching refs:url

37     char *url;
162 static int ishttp(char *url)
164 const char *proto_name = avio_find_protocol_name(url);
322 av_freep(&(*seg)->url);
401 static int open_url(AVFormatContext *s, AVIOContext **pb, const char *url,
410 if (av_strstart(url, "crypto", NULL)) {
411 if (url[6] == '+' || url[6] == ':')
412 proto_name = avio_find_protocol_name(url + 7);
416 proto_name = avio_find_protocol_name(url);
424 if (strcmp(c->allowed_extensions, "ALL") && !av_match_ext(url, c->allowed_extensions)) {
428 url);
436 if (!strncmp(proto_name, url, proto_name_len) && url[proto_name_len] == ':')
438 else if (av_strstart(url, "crypto", NULL) && !strncmp(proto_name, url + 7, proto_name_len) && url[7 + proto_name_len] == ':')
440 else if (strcmp(proto_name, "file") || !strncmp(url, "file,", 5))
446 ret = avio_open2(pb, url, AVIO_FLAG_READ, c->interrupt_callback, &tmp);
477 char *url = NULL;
500 url = av_strireplace(tmp_str, "$RepresentationID$", rep_id_val);
501 if (!url) {
504 av_strlcpy(tmp_str, url, max_url_size);
507 // free any previously assigned url before reassigning
508 av_free(url);
509 url = av_strireplace(tmp_str, "$Bandwidth$", rep_bandwidth_val);
510 if (!url) {
516 return url;
620 rep->init_section->url = get_content_url(baseurl_nodes, 4,
626 if (!rep->init_section->url) {
641 seg->url = get_content_url(baseurl_nodes, 4,
647 if (!seg->url) {
703 static int resolve_content_path(AVFormatContext *s, const char *url, int *max_url_size, xmlNodePtr *baseurl_nodes, int n_baseurl_nodes)
720 int tmp_max_url_size = strlen(url);
740 av_strlcpy(text, url, strlen(url)+1);
754 av_strlcpy (path, url, strlen(url) - size + 1);
822 static int parse_manifest_representation(AVFormatContext *s, const char *url,
862 av_log(s, AV_LOG_VERBOSE, "Parsing '%s' - skipp not supported representation type\n", url);
896 ret = resolve_content_path(s, url, &c->max_url_size, baseurl_nodes, 4);
918 rep->init_section->url = get_content_url(baseurl_nodes, 4,
922 if (!rep->init_section->url)
1001 seg->url = get_content_url(baseurl_nodes, 4, c->max_url_size,
1003 if (!seg->url)
1114 static int parse_manifest_adaptationset(AVFormatContext *s, const char *url,
1147 ret = parse_manifest_representation(s, url, node,
1199 static int parse_manifest(AVFormatContext *s, const char *url, AVIOContext *in)
1225 ret = avio_open2(&in, url, AVIO_FLAG_READ, c->interrupt_callback, &opts);
1232 c->base_url = av_strdup(url);
1238 av_log(s, AV_LOG_ERROR, "Unable to read to manifest '%s'\n", url);
1250 av_log(s, AV_LOG_ERROR, "Unable to parse '%s' - missing root node\n", url);
1257 av_log(s, AV_LOG_ERROR, "Unable to parse '%s' - wrong root node name[%s] type[%d]\n", url, node->name, (int)node->type);
1263 av_log(s, AV_LOG_ERROR, "Unable to parse '%s' - missing type attrib\n", url);
1341 av_log(s, AV_LOG_ERROR, "Unable to parse '%s' - missing Period node\n", url);
1355 parse_manifest_adaptationset(s, url, adaptionset_node, mpd_baseurl_node, period_baseurl_node, period_segmenttemplate_node, period_segmentlist_node);
1503 ret = parse_manifest(s, s->url, NULL);
1597 seg->url = av_strdup(seg_ptr->url);
1598 if (!seg->url) {
1647 seg->url = av_strireplace(pls->url_template, pls->url_template, tmpfilename);
1648 if (!seg->url) {
1649 av_log(pls->parent, AV_LOG_WARNING, "Unable to resolve template url '%s', try to use origin template\n", pls->url_template);
1650 seg->url = av_strdup(pls->url_template);
1651 if (!seg->url) {
1652 av_log(pls->parent, AV_LOG_ERROR, "Cannot resolve template url '%s'\n", pls->url_template);
1684 char *url = NULL;
1687 url = av_mallocz(c->max_url_size);
1688 if (!url) {
1700 ff_make_absolute_url(url, c->max_url_size, c->base_url, seg->url);
1701 av_log(pls->parent, AV_LOG_VERBOSE, "DASH request for url '%s', offset %"PRId64"\n",
1702 url, seg->url_offset);
1703 ret = open_url(pls->parent, &pls->input, url, &c->avio_opts, opts, NULL);
1706 av_free(url);
1832 static int nested_io_open(AVFormatContext *s, AVIOContext **pb, const char *url,
1838 s->url, url);
1906 ret = avformat_open_input(&pls->ctx, "", in_fmt, &in_fmt_opts); //pls->init_section->url
1976 char *url =NULL;
1984 url = first_init_section->url;
1991 if (av_strcasecmp(pls[i]->init_section->url, url) ||
2037 if ((ret = parse_manifest(s, s->url, s->pb)) < 0)