From: Jean-Baptiste Kempf Date: Sun, 29 Mar 2009 16:40:55 +0000 (+0200) Subject: Some broken .Ram playlist have .rm extensions. The real demuxer should take the actul... X-Git-Tag: 1.0.0-pre2~331 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=dbb6de576b7a4a6a7b98da4c4c412f876ddfa1a8;p=vlc Some broken .Ram playlist have .rm extensions. The real demuxer should take the actula .rm files before. --- diff --git a/modules/demux/playlist/ram.c b/modules/demux/playlist/ram.c index 8b2f63cb6a..d640c7ac22 100644 --- a/modules/demux/playlist/ram.c +++ b/modules/demux/playlist/ram.c @@ -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" );