]> git.sesse.net Git - vlc/commitdiff
* modules/codec/ffmpeg/demux.c: don't use libavformat's redirector demux.
authorGildas Bazin <gbazin@videolan.org>
Wed, 14 Jul 2004 19:26:30 +0000 (19:26 +0000)
committerGildas Bazin <gbazin@videolan.org>
Wed, 14 Jul 2004 19:26:30 +0000 (19:26 +0000)
modules/codec/ffmpeg/demux.c

index c590b427456a4899b14be273a36ff102b58e9cf2..5ab066c918fea38f7807d6a62d880aae359076c5 100644 (file)
@@ -108,11 +108,16 @@ int E_(OpenDemux)( vlc_object_t *p_this )
         ( !strcmp( fmt->name, "mpeg" ) ||
           !strcmp( fmt->name, "vcd" ) ||
           !strcmp( fmt->name, "vob" ) ||
-          !strcmp( fmt->name, "mpegts" ) ) )
+          !strcmp( fmt->name, "mpegts" ) ||
+          /* libavformat's redirector won't work */
+          !strcmp( fmt->name, "redir" ) ||
+          !strcmp( fmt->name, "sdp" ) ) )
     {
         return VLC_EGENERIC;
     }
 
+    msg_Dbg( p_demux, "detected format: %s", fmt->name );
+
     /* Fill p_demux fields */
     p_demux->pf_demux = Demux;
     p_demux->pf_control = Control;