On Mon, 21 May 2012, Samuel Pitoiset wrote:

---
libavformat/avio.c       |    7 +++++++
libavformat/os_support.h |    6 ++++++
libavformat/url.h        |   13 +++++++++++++
3 files changed, 26 insertions(+)

diff --git a/libavformat/avio.c b/libavformat/avio.c
index ba25abe..371500e 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -345,6 +345,13 @@ int ffurl_get_file_handle(URLContext *h)
    return h->prot->url_get_file_handle(h);
}

+int ffurl_shutdown(URLContext *h, int flags)
+{
+    if (!h->prot->url_shutdown)
+        return AVERROR(EINVAL);
+    return h->prot->url_shutdown(h, flags);
+}
+
int ff_check_interrupt(AVIOInterruptCB *cb)
{
    int ret;
diff --git a/libavformat/os_support.h b/libavformat/os_support.h
index 20c6d73..1088c6c 100644
--- a/libavformat/os_support.h
+++ b/libavformat/os_support.h
@@ -45,6 +45,12 @@ static inline int is_dos_path(const char *path)
    return 0;
}

+#if defined(_WIN32)
+#define SHUT_RD SD_RECEIVE
+#define SHUT_WR SD_SEND
+#define SHUT_RDWR SD_BOTH
+#endif
+

Pushed, with this hunk moved to patch #2. I also removed the trailing dot from the commit summary line, since we normally omit it there.

// Martin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to