Lines Matching refs:up
74 static int url_alloc_for_protocol(URLContext **puc, const URLProtocol *up,
82 if (up->flags & URL_PROTOCOL_FLAG_NETWORK && !ff_network_init())
85 if ((flags & AVIO_FLAG_READ) && !up->url_read) {
87 "Impossible to open the '%s' protocol for reading\n", up->name);
90 if ((flags & AVIO_FLAG_WRITE) && !up->url_write) {
92 "Impossible to open the '%s' protocol for writing\n", up->name);
103 uc->prot = up;
107 if (up->priv_data_size) {
108 uc->priv_data = av_mallocz(up->priv_data_size);
113 if (up->priv_data_class) {
115 *(const AVClass **)uc->priv_data = up->priv_data_class;
117 if (av_strstart(uc->filename, up->name, (const char**)&start) && *start == ',') {
124 if (strcmp(up->name, "subfile"))
160 if (up->flags & URL_PROTOCOL_FLAG_NETWORK)
274 const URLProtocol *up = protocols[i];
275 if (!strcmp(proto_str, up->name)) {
277 return up;
279 if (up->flags & URL_PROTOCOL_FLAG_NESTED_SCHEME &&
280 !strcmp(proto_nested, up->name)) {
282 return up;