avio: Fix the value of the deprecated URL_FLAG_NONBLOCK

Message ID 1326381059-11147-1-git-send-email-martin@martin.st
State Committed
Commit 6b9e4eea839b9f75dc4cad628c923d5c70d704d1
Headers show

Commit Message

Martin Storsjö Jan. 12, 2012, 3:10 p.m.
This isn't used in practice anywhere within libav at the moment,
but change it for consistency until it is removed.
URL_RDONLY/WRONLY were fixed in commit 5b81e295931 (after the
values that actually were used were changed at the major bump,
in commit cbea3ac8), but this flag was unintentionally left unfixed.

Signed-off-by: Martin Storsjö <martin@martin.st>
---
 libavformat/avio.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Luca Barbato Jan. 12, 2012, 7:32 p.m. | #1
On 12/01/12 16:10, Martin Storsjö wrote:
> This isn't used in practice anywhere within libav at the moment,
> but change it for consistency until it is removed.
> URL_RDONLY/WRONLY were fixed in commit 5b81e295931 (after the
> values that actually were used were changed at the major bump,
> in commit cbea3ac8), but this flag was unintentionally left unfixed.
>

Ok.

Patch

diff --git a/libavformat/avio.h b/libavformat/avio.h
index e73264f..78935d9 100644
--- a/libavformat/avio.h
+++ b/libavformat/avio.h
@@ -204,7 +204,7 @@  attribute_deprecated int url_poll(URLPollEntry *poll_table, int n, int timeout);
  * Warning: non-blocking protocols is work-in-progress; this flag may be
  * silently ignored.
  */
-#define URL_FLAG_NONBLOCK 4
+#define URL_FLAG_NONBLOCK 8
 
 typedef int URLInterruptCB(void);
 extern URLInterruptCB *url_interrupt_cb;