From 2860640c7cf39410bfb21f69ce05e345e9078fa3 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 7 Jun 2016 16:03:38 +0100 Subject: Replace a shared_ptr with a weak_ptr. --- src/lib/transcoder.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/lib/transcoder.h') diff --git a/src/lib/transcoder.h b/src/lib/transcoder.h index a01b6a64a..4256a5c91 100644 --- a/src/lib/transcoder.h +++ b/src/lib/transcoder.h @@ -19,6 +19,7 @@ */ #include "types.h" +#include class Film; class Encoder; @@ -30,7 +31,7 @@ class Job; class Transcoder : public boost::noncopyable { public: - Transcoder (boost::shared_ptr, boost::shared_ptr); + Transcoder (boost::shared_ptr, boost::weak_ptr); void go (); @@ -44,7 +45,7 @@ public: private: boost::shared_ptr _film; - boost::shared_ptr _job; + boost::weak_ptr _job; boost::shared_ptr _player; boost::shared_ptr _writer; boost::shared_ptr _encoder; -- cgit v1.2.3