mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-06 15:49:50 +08:00
avio: remove AVIO_* access symbols in favor of new AVIO_FLAG_* symbols
Make AVIO_FLAG_ access constants work as flags, and in particular fix the behavior of functions (such as avio_check()) which expect them to be flags rather than modes. This breaks API.
This commit is contained in:

committed by
Anton Khirnov

parent
490a022d86
commit
59d96941f0
@ -233,7 +233,7 @@ static int mmsh_open(URLContext *h, const char *uri, int flags)
|
||||
port = 80; // default mmsh protocol port
|
||||
ff_url_join(httpname, sizeof(httpname), "http", NULL, host, port, path);
|
||||
|
||||
if (ffurl_alloc(&mms->mms_hd, httpname, AVIO_RDONLY) < 0) {
|
||||
if (ffurl_alloc(&mms->mms_hd, httpname, AVIO_FLAG_READ) < 0) {
|
||||
return AVERROR(EIO);
|
||||
}
|
||||
|
||||
@ -261,7 +261,7 @@ static int mmsh_open(URLContext *h, const char *uri, int flags)
|
||||
// close the socket and then reopen it for sending the second play request.
|
||||
ffurl_close(mms->mms_hd);
|
||||
memset(headers, 0, sizeof(headers));
|
||||
if (ffurl_alloc(&mms->mms_hd, httpname, AVIO_RDONLY) < 0) {
|
||||
if (ffurl_alloc(&mms->mms_hd, httpname, AVIO_FLAG_READ) < 0) {
|
||||
return AVERROR(EIO);
|
||||
}
|
||||
stream_selection = av_mallocz(mms->stream_num * 19 + 1);
|
||||
|
Reference in New Issue
Block a user