From 7bad151df4b0b8b876ac3e32077c712975d3eee9 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Wed, 6 Nov 2013 16:32:57 +0000 Subject: making video bank --- rotord/src/rotor.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'rotord/src/rotor.h') diff --git a/rotord/src/rotor.h b/rotord/src/rotor.h index e44c753..4c71c84 100644 --- a/rotord/src/rotor.h +++ b/rotord/src/rotor.h @@ -629,7 +629,7 @@ namespace Rotor { int thisframe=((Time_spec)frame).frame(); switch (attributes["frame_mode"]->intVal){ case VIDEOTIME_play: - if(thisframe==lastframe+1){ + if(thisframe==lastframe||thisframe==lastframe+1){ if (segment!=wv){ //start of new segment cerr<<"segment "<get(testframe)==wv&&testframe.frame()>0){ + testframe=testframe.lastframe(); + } + segment_start=testframe.time; } - wanted=ph*player.get_number_frames(); + wanted=(((Time_spec)frame).time-segment_start)*player.get_framerate(); + lastframe=thisframe; break; case VIDEOTIME_stretch: wanted=ph*player.get_number_frames(); -- cgit v1.2.3