diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-06-07 16:03:38 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-06-07 16:03:38 +0100 |
| commit | 2860640c7cf39410bfb21f69ce05e345e9078fa3 (patch) | |
| tree | 74257b09ee318c72f13c21f14e38a57388a33e62 /src/lib/transcoder.h | |
| parent | c91561e2981e0e089f723d7d26d1ea6fccec201b (diff) | |
Replace a shared_ptr with a weak_ptr.
Diffstat (limited to 'src/lib/transcoder.h')
| -rw-r--r-- | src/lib/transcoder.h | 5 |
1 files changed, 3 insertions, 2 deletions
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 <boost/weak_ptr.hpp> class Film; class Encoder; @@ -30,7 +31,7 @@ class Job; class Transcoder : public boost::noncopyable { public: - Transcoder (boost::shared_ptr<const Film>, boost::shared_ptr<Job>); + Transcoder (boost::shared_ptr<const Film>, boost::weak_ptr<Job>); void go (); @@ -44,7 +45,7 @@ public: private: boost::shared_ptr<const Film> _film; - boost::shared_ptr<Job> _job; + boost::weak_ptr<Job> _job; boost::shared_ptr<Player> _player; boost::shared_ptr<Writer> _writer; boost::shared_ptr<Encoder> _encoder; |
