Player: Use shared pointer for engine

This commit is contained in:
Jonas Kvinge 2024-11-10 01:21:25 +01:00
parent 7f3293609b
commit 218dd439b6
1 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@
#include "analyzer/analyzercontainer.h" #include "analyzer/analyzercontainer.h"
using namespace std::chrono_literals; using namespace std::chrono_literals;
using std::make_unique; using std::make_shared;
namespace { namespace {
constexpr char kSettingsGroup[] = "Player"; constexpr char kSettingsGroup[] = "Player";
@ -78,7 +78,7 @@ Player::Player(const SharedPtr<TaskManager> task_manager, const SharedPtr<UrlHan
task_manager_(task_manager), task_manager_(task_manager),
url_handlers_(url_handlers), url_handlers_(url_handlers),
playlist_manager_(playlist_manager), playlist_manager_(playlist_manager),
engine_(make_unique<GstEngine>(task_manager_)), engine_(make_shared<GstEngine>(task_manager_)),
analyzer_(nullptr), analyzer_(nullptr),
equalizer_(nullptr), equalizer_(nullptr),
timer_save_volume_(new QTimer(this)), timer_save_volume_(new QTimer(this)),