Support for relative path for files in mix

File path in mix session file add a relative reference to the location of the session mix file. If SessionCreator cannot find the absolute path, it tries to load the file at the relative location. Done for MediaSource, SessionFileSource and SequenceSource.
This commit is contained in:
Bruno
2021-07-30 00:22:44 +02:00
parent fc91e7cbdd
commit d2a576c99c
10 changed files with 165 additions and 75 deletions

View File

@@ -232,6 +232,9 @@ void MediaPlayer::open (const std::string & filename, const string &uri)
else
uri_ = uri;
if (uri_.empty())
failed_ = true;
// close before re-openning
if (isOpen())
close();