mirror of https://git.ffmpeg.org/ffmpeg.git
avio: deprecate url_open_protocol
The unbuffered API will be made private and it's not used anywhere internally.
This commit is contained in:
parent
e230705392
commit
333e894363
|
@ -150,6 +150,7 @@ int url_connect(URLContext* uc)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if FF_API_OLD_AVIO
|
||||||
int url_open_protocol (URLContext **puc, struct URLProtocol *up,
|
int url_open_protocol (URLContext **puc, struct URLProtocol *up,
|
||||||
const char *filename, int flags)
|
const char *filename, int flags)
|
||||||
{
|
{
|
||||||
|
@ -166,6 +167,7 @@ int url_open_protocol (URLContext **puc, struct URLProtocol *up,
|
||||||
*puc = NULL;
|
*puc = NULL;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#define URL_SCHEME_CHARS \
|
#define URL_SCHEME_CHARS \
|
||||||
"abcdefghijklmnopqrstuvwxyz" \
|
"abcdefghijklmnopqrstuvwxyz" \
|
||||||
|
|
|
@ -94,19 +94,15 @@ typedef struct URLPollEntry {
|
||||||
|
|
||||||
typedef int URLInterruptCB(void);
|
typedef int URLInterruptCB(void);
|
||||||
|
|
||||||
|
#if FF_API_OLD_AVIO
|
||||||
/**
|
/**
|
||||||
* Create a URLContext for accessing to the resource indicated by
|
* @defgroup old_url_funcs Old url_* functions
|
||||||
* url, and open it using the URLProtocol up.
|
* @deprecated use the buffered API based on AVIOContext instead
|
||||||
*
|
* @{
|
||||||
* @param puc pointer to the location where, in case of success, the
|
|
||||||
* function puts the pointer to the created URLContext
|
|
||||||
* @param flags flags which control how the resource indicated by url
|
|
||||||
* is to be opened
|
|
||||||
* @return 0 in case of success, a negative value corresponding to an
|
|
||||||
* AVERROR code in case of failure
|
|
||||||
*/
|
*/
|
||||||
int url_open_protocol (URLContext **puc, struct URLProtocol *up,
|
attribute_deprecated int url_open_protocol (URLContext **puc, struct URLProtocol *up,
|
||||||
const char *url, int flags);
|
const char *url, int flags);
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a URLContext for accessing to the resource indicated by
|
* Create a URLContext for accessing to the resource indicated by
|
||||||
|
@ -338,6 +334,10 @@ int av_register_protocol2(URLProtocol *protocol, int size);
|
||||||
|
|
||||||
#define AVIO_SEEKABLE_NORMAL 0x0001 /**< Seeking works like for a local file */
|
#define AVIO_SEEKABLE_NORMAL 0x0001 /**< Seeking works like for a local file */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @}
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Bytestream IO Context.
|
* Bytestream IO Context.
|
||||||
* New fields can be added to the end with minor version bumps.
|
* New fields can be added to the end with minor version bumps.
|
||||||
|
|
Loading…
Reference in New Issue