BugFix Mediaplayer loop and info mediaplayer

This commit is contained in:
Bruno Herbelin
2022-02-26 22:32:37 +01:00
parent c355bd7569
commit 95a69937bd
2 changed files with 4 additions and 4 deletions

View File

@@ -1013,9 +1013,8 @@ void MediaPlayer::update()
}
// manage loop mode
if (need_loop) {
if (need_loop)
execute_loop_command();
}
force_update_ = false;
}
@@ -1030,7 +1029,8 @@ void MediaPlayer::execute_loop_command()
execute_seek_command();
}
else { //LOOP_NONE
play(false);
if (desired_state_ == GST_STATE_PLAYING) // avoid repeated call
play(false);
}
}