From e6db09cfed46ff6f0858733f3af35c72bc4d4171 Mon Sep 17 00:00:00 2001 From: Niels Elburg Date: Fri, 30 Sep 2005 12:18:00 +0000 Subject: [PATCH] Fix -g and --clip-as sample commandline option git-svn-id: svn://code.dyne.org/veejay/trunk@428 eb8d1916-c9e9-0310-b8de-cf0c9472ead5 --- veejay-current/veejay/liblavplayvj.c | 30 ++++++++++++++-------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/veejay-current/veejay/liblavplayvj.c b/veejay-current/veejay/liblavplayvj.c index 16c1ded5..bbb56348 100644 --- a/veejay-current/veejay/liblavplayvj.c +++ b/veejay-current/veejay/liblavplayvj.c @@ -1814,6 +1814,21 @@ int veejay_init(veejay_t * info, int x, int y,char *arg, int def_tags) return -1; } } + if( info->uc->file_as_sample) + { +veejay_msg(VEEJAY_MSG_DEBUG, "FILE AS SAMPLE"); + long i,n=info->current_edit_list->num_video_files; + for(i = 1; i < n; i ++ ) + { + long start,end; + if(vj_el_get_file_entry( info->current_edit_list, &start,&end, i )) + { + sample_info *skel = sample_skeleton_new( start,end ); + skel->edit_list = info->current_edit_list; + sample_store(skel); + } + } + } /* After we have fired up the audio and video threads system (which * are assisted if we're installed setuid root, we want to set the @@ -3120,21 +3135,6 @@ int veejay_open_files(veejay_t * info, char **files, int num_files, float ofps, veejay_msg(VEEJAY_MSG_ERROR, "Failed to start veejay"); return ret; } - /* create samples from EDL */ - if( info->uc->file_as_sample) - { - long i,n=info->current_edit_list->num_video_files; - for(i = 0; i < n; i ++ ) - { - long start,end; - if(vj_el_get_file_entry( info->current_edit_list, &start,&end, i )) - { - sample_info *skel = sample_skeleton_new( start,end ); - sample_store(skel); - } - } - } - return ret; }