BugFix Loading Timeline of MediaPlayer

This commit is contained in:
Bruno Herbelin
2023-08-11 12:37:13 +02:00
parent 87a51afd99
commit fa5adcf08b
2 changed files with 6 additions and 6 deletions

View File

@@ -1164,10 +1164,8 @@ void MediaPlayer::update()
if (media_.valid) {
if (!media_.log.empty())
Log::Info("'%s' : %s", uri().c_str(), media_.log.c_str());
if (!media_.isimage) {
timeline_.setEnd( media_.end );
timeline_.setStep( media_.dt );
}
if (!media_.isimage)
timeline_.setTiming( TimeInterval(0, media_.end), media_.dt);
execute_open();
}
else {