From 2537a2d959a5872c2e75b322022a7679d24c7e60 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 2 Jan 2018 21:09:36 +0000 Subject: A previous commit took care to make Decoder::position() not be updated if the data that was emitted from the decoder was not taken by the player. This means that when the decoder moves into its end trim the position will stay where it is (since the player does not take the data). I can't see the point of doing this; the only use of Decoder::position() is to decide what to pass() next (I think). It is also inconvenient because we would like to check Decoder::position() to decide whether to stop passing a decoder since it's in its end trim (not doing this causes #1154). --- src/lib/video_decoder.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/video_decoder.h') diff --git a/src/lib/video_decoder.h b/src/lib/video_decoder.h index c5e2ea4cf..959ff7ac7 100644 --- a/src/lib/video_decoder.h +++ b/src/lib/video_decoder.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2016 Carl Hetherington + Copyright (C) 2012-2018 Carl Hetherington This file is part of DCP-o-matic. @@ -60,7 +60,7 @@ public: void emit (boost::shared_ptr, Frame frame); /** @return true if the emitted data was accepted, false if not */ - boost::signals2::signal Data; + boost::signals2::signal Data; private: boost::shared_ptr _content; -- cgit v1.2.3