- uint8_t *p_peek;
- char *psz_ext;
-
- if( stream_Peek( p_demux->s , &p_peek, 7 ) < 7 )
- {
- msg_Err( p_demux, "cannot peek" );
- return VLC_EGENERIC;
- }
- psz_ext = strrchr ( p_demux->psz_path, '.' );
-
- if( !strncasecmp( p_peek, "[playlist]", 10 ) )
+ if( POKE( p_peek, "[playlist]", 10 ) || POKE( p_peek, "[Reference]", 10 ) ||
+ demux_IsPathExtension( p_demux, ".pls" ) || demux_IsForced( p_demux, "pls" ) )