summaryrefslogtreecommitdiff
path: root/src/lib/j2k_encoder.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-10-14 21:21:36 +0200
committerCarl Hetherington <cth@carlh.net>2022-10-17 00:10:59 +0200
commitbfd6bd32b5e20c479170452a66cb44eff59feacd (patch)
treeaf011823d59ee1cb93696d310eefae56796b6d71 /src/lib/j2k_encoder.h
parent3d93dcca591557486a8429ff5b1fcf0f262fb096 (diff)
Remove some unnecessary use of shared_ptr.
Diffstat (limited to 'src/lib/j2k_encoder.h')
-rw-r--r--src/lib/j2k_encoder.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/j2k_encoder.h b/src/lib/j2k_encoder.h
index 4bdedb060..ce362f386 100644
--- a/src/lib/j2k_encoder.h
+++ b/src/lib/j2k_encoder.h
@@ -33,6 +33,7 @@
#include "event_history.h"
#include "exception_store.h"
#include "util.h"
+#include "writer.h"
#include <boost/optional.hpp>
#include <boost/signals2.hpp>
#include <boost/thread.hpp>
@@ -47,7 +48,6 @@ class EncodeServerDescription;
class Film;
class Job;
class PlayerVideo;
-class Writer;
/** @class J2KEncoder
@@ -59,7 +59,7 @@ class Writer;
class J2KEncoder : public ExceptionStore, public std::enable_shared_from_this<J2KEncoder>
{
public:
- J2KEncoder (std::shared_ptr<const Film> film, std::shared_ptr<Writer> writer);
+ J2KEncoder(std::shared_ptr<const Film> film, Writer& writer);
~J2KEncoder ();
J2KEncoder (J2KEncoder const&) = delete;
@@ -81,8 +81,6 @@ public:
private:
- static void call_servers_list_changed (std::weak_ptr<J2KEncoder> encoder);
-
void frame_done ();
void encoder_thread (boost::optional<EncodeServerDescription>);
@@ -103,7 +101,7 @@ private:
/** condition to manage thread wakeups when we have too much to do */
boost::condition _full_condition;
- std::shared_ptr<Writer> _writer;
+ Writer& _writer;
Waker _waker;
EnumIndexedVector<std::shared_ptr<PlayerVideo>, Eyes> _last_player_video;