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:58:08 +0000 |
| commit | 24ba224ab4871e453df50fde94b5b32649a3d47b (patch) | |
| tree | 2c90d0f0dc1ce819f8599722e743e0017e98fd7b /src/lib/shuffler.h | |
| parent | 1d4c7f065389981ba145b89a0a224cb986d8eb5b (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; }; |
