i'm trying to loop the background music and i always got this SIGSEGV problem that crashed my program. If i remove the QMediaPlaylist playback mode then the program ran just fine.
Here the github link: https://github.com/KhanhSonPham/simplePlaneShooting
QMediaPlaylist * playlist = new QMediaPlaylist();
playlist->setPlaybackMode(QMediaPlaylist::CurrentItemInLoop);
playlist->addMedia(QUrl("qrc:/sounds/engine.mp3"));
playlist->setCurrentIndex(1);
sound = new QMediaPlayer();
sound->setPlaylist(playlist);
sound->play();
error output