1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-14 01:26:00 +01:00

Change to std::shared_ptr

This commit is contained in:
Jonas Kvinge 2021-07-01 01:50:12 +02:00
parent 32729174bb
commit 0e8ae1a206
2 changed files with 2 additions and 2 deletions

View File

@ -127,7 +127,7 @@ Engine::EngineType Player::CreateEngine(Engine::EngineType enginetype) {
#ifdef HAVE_VLC
case Engine::VLC:
use_enginetype=Engine::VLC;
engine_ = std::make_unique<VLCEngine>(app_->task_manager());
engine_ = std::make_shared<VLCEngine>(app_->task_manager());
break;
#endif
default:

View File

@ -216,7 +216,7 @@ class Player : public PlayerInterface {
private:
Application *app_;
std::unique_ptr<EngineBase> engine_;
std::shared_ptr<EngineBase> engine_;
#ifdef HAVE_GSTREAMER
GstStartup *gst_startup_;
#endif