Change to std::shared_ptr
This commit is contained in:
@@ -127,7 +127,7 @@ Engine::EngineType Player::CreateEngine(Engine::EngineType enginetype) {
|
|||||||
#ifdef HAVE_VLC
|
#ifdef HAVE_VLC
|
||||||
case Engine::VLC:
|
case Engine::VLC:
|
||||||
use_enginetype=Engine::VLC;
|
use_enginetype=Engine::VLC;
|
||||||
engine_ = std::make_unique<VLCEngine>(app_->task_manager());
|
engine_ = std::make_shared<VLCEngine>(app_->task_manager());
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -216,7 +216,7 @@ class Player : public PlayerInterface {
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
Application *app_;
|
Application *app_;
|
||||||
std::unique_ptr<EngineBase> engine_;
|
std::shared_ptr<EngineBase> engine_;
|
||||||
#ifdef HAVE_GSTREAMER
|
#ifdef HAVE_GSTREAMER
|
||||||
GstStartup *gst_startup_;
|
GstStartup *gst_startup_;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user