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:
parent
32729174bb
commit
0e8ae1a206
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user