diff options
Diffstat (limited to 'modules/pdp_fcqt.c')
-rw-r--r-- | modules/pdp_fcqt.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/pdp_fcqt.c b/modules/pdp_fcqt.c index e7be248..e3659e3 100644 --- a/modules/pdp_fcqt.c +++ b/modules/pdp_fcqt.c @@ -273,13 +273,11 @@ static void pdp_fcqt_frame_cold(t_pdp_fcqt *x, t_floatarg frameindex) if (!(x->initialized)) return; - length = quicktime_video_length(x->qt,0); - - frame = (frame >= length) ? length-1 : frame; + frame = (frame >= x->x_length) ? x->x_length-1 : frame; frame = (frame < 0) ? 0 : frame; // post("pdp_fcqt : frame cold : setting video position to : %d", frame ); - quicktime_set_video_position(x->qt, frame, 0); + x->x_current_frame = frame; } static void pdp_fcqt_frame(t_pdp_fcqt *x, t_floatarg frameindex) |