Cleanup extension filename and bugfix session preview

This commit is contained in:
Bruno Herbelin
2022-01-12 23:16:23 +01:00
parent aab0c055ed
commit 1146a9125b
7 changed files with 28 additions and 17 deletions

View File

@@ -244,8 +244,7 @@ Source * Mixer::createSourceFile(const std::string &path)
if ( SystemToolkit::file_exists( path ) ) {
// test type of file by extension
std::string ext = SystemToolkit::extension_filename(path);
if ( ext == "mix" )
if ( SystemToolkit::has_extension(path, VIMIX_FILE_EXT ) )
{
// create a session source
SessionFileSource *ss = new SessionFileSource;