-// nothing selected
- if(start == end && !all) return 1;
-
- Track* current;
-
- for(current = first;
- current;
- current = NEXT)
- {
- if(current->record || all)
- {
- current->copy(start, end, file,output_path);
- }
+ int all = (copy_flags & COPY_ALL) ? 1 : 0;
+// if nothing selected
+ if( start == end && !all ) return 1;
+ for( Track *track=first; track; track=track->next ) {
+ if( track->record || all )
+ track->copy(copy_flags, start, end, file, output_path);