if (filename) {
for (int i = 0; i < regexes; ++i) {
boost::regex e (regex[i].regex, boost::regex::icase);
- if (boost::regex_match(filename->string(), e) && regex[i].channel < output_channels()) {
+ if (boost::regex_match(filename->filename().string(), e) && regex[i].channel < output_channels()) {
set (0, regex[i].channel, 1);
guessed = true;
}
guess_check ("ptish_Rsr_abc.wav", 7);
guess_check ("more_Lss_s.wav", 4);
guess_check ("other_Rss.aiff", 5);
+
+ /* Only the filename should be taken into acccount */
+ guess_check ("-Lfe-/foo_L.wav", 0);
}