diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-02-23 00:57:04 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-02-23 00:57:04 +0000 |
| commit | c8d104aa221bdccb0a11524c038b5f4c7c070554 (patch) | |
| tree | 9b4a62e03df9dc8ccf0ac381d6b8eb141e8d63c3 /src/lib/shuffler.h | |
| parent | 5a03c6b8e5d088126378b2dd3aef93fbc0216d06 (diff) | |
Fix implementation of delay in 7758260; it needs to apply to
anything passed to emit_video(), not just things that come from
decoders.
Diffstat (limited to 'src/lib/shuffler.h')
| -rw-r--r-- | src/lib/shuffler.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/shuffler.h b/src/lib/shuffler.h index 2c1d0677f..3eed3e4f0 100644 --- a/src/lib/shuffler.h +++ b/src/lib/shuffler.h @@ -20,18 +20,22 @@ #include "types.h" #include "content_video.h" -#include "video_adjuster.h" #include <boost/signals2.hpp> class Piece; -class Shuffler : public VideoAdjuster +class Shuffler { public: void clear (); - + void flush (); void video (boost::weak_ptr<Piece>, ContentVideo video); + boost::signals2::signal<void (boost::weak_ptr<Piece>, ContentVideo)> Video; + + typedef std::pair<boost::weak_ptr<Piece>, ContentVideo> Store; + private: + std::list<Store> _store; boost::optional<ContentVideo> _last; }; |
