mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-18 22:00:00 +01:00
Fix -g and --clip-as sample commandline option
git-svn-id: svn://code.dyne.org/veejay/trunk@428 eb8d1916-c9e9-0310-b8de-cf0c9472ead5
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user