diff utils.c @ 2555:c226029c8df4 libavformat

loosen dependencies over allformats.h
author aurel
date Sun, 16 Sep 2007 23:00:44 +0000
parents 213268d7594e
children 0c4febec2258
line wrap: on
line diff
--- a/utils.c	Sun Sep 16 19:51:10 2007 +0000
+++ b/utils.c	Sun Sep 16 23:00:44 2007 +0000
@@ -19,7 +19,6 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 #include "avformat.h"
-#include "allformats.h"
 #include "opt.h"
 #include "avstring.h"
 #include "riff.h"
@@ -468,7 +467,7 @@
 
     /* XXX: suppress this hack for redirectors */
 #ifdef CONFIG_REDIR_DEMUXER
-    if (fmt == &redir_demuxer) {
+    if (!strcmp(fmt->name, "redir")) {
         int redir_open(AVFormatContext **ic_ptr, ByteIOContext *f);
         err = redir_open(ic_ptr, pb);
         url_fclose(pb);