---
 libavformat/applehttp.c |    1 +
 libavformat/avio.h      |    2 +-
 libavformat/tcp.c       |    1 +
 libavformat/udp.c       |    1 +
 libavformat/url.h       |    2 ++
 libavformat/utils.c     |    1 +
 6 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/libavformat/applehttp.c b/libavformat/applehttp.c
index 9e11fca..6c697c5 100644
--- a/libavformat/applehttp.c
+++ b/libavformat/applehttp.c
@@ -31,6 +31,7 @@
 #include "internal.h"
 #include <unistd.h>
 #include "avio_internal.h"
+#include "url.h"
 
 #define INITIAL_BUFFER_SIZE 32768
 
diff --git a/libavformat/avio.h b/libavformat/avio.h
index 335c7bb..6da7b23 100644
--- a/libavformat/avio.h
+++ b/libavformat/avio.h
@@ -163,9 +163,9 @@ typedef struct URLProtocol {
 extern URLProtocol *first_protocol;
 #endif
 
+#if FF_API_OLD_AVIO
 extern URLInterruptCB *url_interrupt_cb;
 
-#if FF_API_OLD_AVIO
 /**
  * If protocol is NULL, returns the first registered protocol,
  * if protocol is non-NULL, returns the next registered protocol after 
protocol,
diff --git a/libavformat/tcp.c b/libavformat/tcp.c
index 37e6d6f..b5959c9 100644
--- a/libavformat/tcp.c
+++ b/libavformat/tcp.c
@@ -23,6 +23,7 @@
 #include "internal.h"
 #include "network.h"
 #include "os_support.h"
+#include "url.h"
 #if HAVE_POLL_H
 #include <poll.h>
 #endif
diff --git a/libavformat/udp.c b/libavformat/udp.c
index 8d50218..1be307c 100644
--- a/libavformat/udp.c
+++ b/libavformat/udp.c
@@ -33,6 +33,7 @@
 #include "internal.h"
 #include "network.h"
 #include "os_support.h"
+#include "url.h"
 #if HAVE_POLL_H
 #include <poll.h>
 #endif
diff --git a/libavformat/url.h b/libavformat/url.h
index 2e1a3f3..7482611 100644
--- a/libavformat/url.h
+++ b/libavformat/url.h
@@ -30,6 +30,8 @@
 
 #if !FF_API_OLD_AVIO
 #define URL_PROTOCOL_FLAG_NESTED_SCHEME 1 /*< The protocol name can be the 
first part of a nested protocol scheme */
+
+extern URLInterruptCB *url_interrupt_cb;
 #endif
 
 /**
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 6790155..60ea945 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -31,6 +31,7 @@
 #include "libavutil/avstring.h"
 #include "riff.h"
 #include "audiointerleave.h"
+#include "url.h"
 #include <sys/time.h>
 #include <time.h>
 #include <strings.h>
-- 
1.7.4.1

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

Reply via email to