]> git.sesse.net Git - vlc/commitdiff
Some broken .Ram playlist have .rm extensions. The real demuxer should take the actul...
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 29 Mar 2009 16:40:55 +0000 (18:40 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 29 Mar 2009 16:40:55 +0000 (18:40 +0200)
modules/demux/playlist/ram.c

index 8b2f63cb6ad334a256589964a4b127a6e1d94af5..d640c7ac22dcd7fd7abcf317637f36ef4a46eaea 100644 (file)
@@ -78,7 +78,8 @@ int Import_RAM( vlc_object_t *p_this )
     demux_t *p_demux = (demux_t *)p_this;
     const uint8_t *p_peek;
     CHECK_PEEK( p_peek, 8 );
-    if(! demux_IsPathExtension( p_demux, ".ram" ) )
+    if(! demux_IsPathExtension( p_demux, ".ram" ) ||
+         demux_IsPathExtension( p_demux, ".rm" ) )
         return VLC_EGENERIC;
 
     STANDARD_DEMUX_INIT_MSG( "found valid RAM playlist" );