From cd519bb31d51c5978a55bb4b05e94a80fe2a2613 Mon Sep 17 00:00:00 2001 From: niels Date: Mon, 16 Nov 2015 19:16:23 +0100 Subject: [PATCH] fix #54 --- veejay-current/veejay-server/veejay/vj-perform.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/veejay-current/veejay-server/veejay/vj-perform.c b/veejay-current/veejay-server/veejay/vj-perform.c index aba0e703..460bd401 100644 --- a/veejay-current/veejay-server/veejay/vj-perform.c +++ b/veejay-current/veejay-server/veejay/vj-perform.c @@ -1557,10 +1557,16 @@ static int vj_perform_get_subframe(veejay_t * info, int this_sample_id, int sub_ int offset = sample_get_offset(a, chain_entry); int len_b; + if(sample_get_short_info(b,&sample_b[0],&sample_b[1],&sample_b[2],&sample_b[3])!=0) return -1; if(sample_get_short_info(a,&sample_a[0],&sample_a[1],&sample_a[2],&sample_a[3])!=0) return -1; + if( info->settings->current_playback_speed == 0 ) + { + return sample_b[0] + offset; + } + len_b = sample_b[1] - sample_b[0]; int max_sfd = sample_get_framedup( b ); @@ -1661,7 +1667,12 @@ static int vj_perform_get_subframe_tag(veejay_t * info, int sub_sample, int chai int len; if(sample_get_short_info(sub_sample,&sample[0],&sample[1],&sample[2],&sample[3])!=0) return -1; - + + if( info->settings->current_playback_speed == 0 ) + { + return sample[0] + offset; + } + len = sample[1] - sample[0]; int max_sfd = sample_get_framedup( sub_sample ); int cur_sfd = sample_get_framedups( sub_sample );