avio: change ffurl_alloc return code.
If the designated protocol is not found, return AVERROR_PROTOCOL_NOT_FOUND instead of AVERROR(ENOENT).
This commit is contained in:
parent
fa5daaca0d
commit
12eeced8b4
@ -229,7 +229,7 @@ int ffurl_alloc(URLContext **puc, const char *filename, int flags,
|
|||||||
return url_alloc_for_protocol (puc, up, filename, flags, int_cb);
|
return url_alloc_for_protocol (puc, up, filename, flags, int_cb);
|
||||||
}
|
}
|
||||||
*puc = NULL;
|
*puc = NULL;
|
||||||
return AVERROR(ENOENT);
|
return AVERROR_PROTOCOL_NOT_FOUND;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ffurl_open(URLContext **puc, const char *filename, int flags,
|
int ffurl_open(URLContext **puc, const char *filename, int flags,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user