Changeset 84

Show
Ignore:
Timestamp:
04/06/06 19:55:37 (3 years ago)
Author:
jlee
Message:

Fix output video bug

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/org/thestaticvoid/iriverter/Converter.java

    r82 r84  
    3030                        if (jobs.get(i) instanceof OutputVideoInfo) { 
    3131                                OutputVideoInfo outputVideoInfo = (OutputVideoInfo) jobs.get(i); 
     32                                 
     33                                if (outputVideoInfo.getOutputVideo().equals("")) 
     34                                        continue; 
     35                                 
    3236                                if (!outputVideoInfo.getOutputVideo().endsWith("." + converterOptions.getCurrentProfile().getWrapperFormat()) && !outputVideoInfo.getOutputVideo().equals("")) 
    3337                                        outputVideoInfo.setOutputVideo(outputVideoInfo.getOutputVideo() + "." + converterOptions.getCurrentProfile().getWrapperFormat()); 
     
    4145                        if (jobs.get(i) instanceof SingleVideoInfo) { 
    4246                                SingleVideoInfo singleVideoInfo = (SingleVideoInfo) jobs.get(i); 
    43                                 if (new File(singleVideoInfo.getInputVideo()).exists() && !singleVideoInfo.getOutputVideo().equals("") && validOutput) 
     47                                if (new File(singleVideoInfo.getInputVideo()).exists() && validOutput) 
    4448                                        newJobs.add(singleVideoInfo); 
    4549                        } else if (jobs.get(i) instanceof DirectoryInfo) { 
     
    5357                        } else if (jobs.get(i) instanceof DVDInfo) { 
    5458                                DVDInfo dvdInfo = (DVDInfo) jobs.get(i); 
    55                                 if (!dvdInfo.getDrive().equals("") && !dvdInfo.getOutputVideo().equals("") && validOutput) 
     59                                if (!dvdInfo.getDrive().equals("") && validOutput) 
    5660                                        newJobs.add(dvdInfo); 
    5761                        } else if (jobs.get(i) instanceof ManualSplitInfo) {