changeset 2053:4611fce2f394 libavformat

properly compile code for REDIR_DEMUXER
author alex
date Thu, 26 Apr 2007 23:40:36 +0000
parents 3d04317ab396
children 9f93361c3dc2
files rtsp.c utils.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rtsp.c	Thu Apr 26 19:27:32 2007 +0000
+++ b/rtsp.c	Thu Apr 26 23:40:36 2007 +0000
@@ -1399,6 +1399,7 @@
 };
 #endif
 
+#ifdef CONFIG_REDIR_DEMUXER
 /* dummy redirector format (used directly in av_open_input_file now) */
 static int redir_probe(AVProbeData *pd)
 {
@@ -1461,3 +1462,4 @@
     NULL,
     NULL,
 };
+#endif
--- a/utils.c	Thu Apr 26 19:27:32 2007 +0000
+++ b/utils.c	Thu Apr 26 23:40:36 2007 +0000
@@ -452,7 +452,7 @@
     }
 
     /* XXX: suppress this hack for redirectors */
-#ifdef CONFIG_NETWORK
+#ifdef CONFIG_REDIR_DEMUXER
     if (fmt == &redir_demuxer) {
         err = redir_open(ic_ptr, pb);
         url_fclose(pb);