Changeset 159
- Timestamp:
- 04/13/07 16:37:07 (2 years ago)
- Files:
-
- trunk/src/org/thestaticvoid/iriverter/Converter.java (modified) (2 diffs)
- trunk/src/org/thestaticvoid/iriverter/Job.java (modified) (1 diff)
- trunk/src/org/thestaticvoid/iriverter/MencoderCommand.java (modified) (1 diff)
- trunk/src/org/thestaticvoid/iriverter/ShitToDo.java (moved) (moved from trunk/src/org/thestaticvoid/iriverter/DoSomeShit.java) (2 diffs)
- trunk/src/org/thestaticvoid/iriverter/SingleVideo.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/org/thestaticvoid/iriverter/Converter.java
r158 r159 27 27 private Job[] jobs; 28 28 private ProgressDialogInfo progressDialogInfo; 29 private DoSomeShitcurrentCommand;29 private ShitToDo currentCommand; 30 30 private List failures; 31 31 … … 42 42 43 43 try { 44 DoSomeShit[] shitToDo = jobs[i].getShitToDo();44 ShitToDo[] shitToDo = jobs[i].getShitToDo(); 45 45 for (int j = 0; j < shitToDo.length; j++) { 46 46 currentCommand = shitToDo[j]; trunk/src/org/thestaticvoid/iriverter/Job.java
r158 r159 24 24 public interface Job { 25 25 public String getDescription(); 26 public DoSomeShit[] getShitToDo();26 public ShitToDo[] getShitToDo(); 27 27 } trunk/src/org/thestaticvoid/iriverter/MencoderCommand.java
r158 r159 25 25 import java.io.*; 26 26 27 public class MencoderCommand implements DoSomeShit{27 public class MencoderCommand implements ShitToDo { 28 28 private String description; 29 29 private String[] command; trunk/src/org/thestaticvoid/iriverter/ShitToDo.java
r158 r159 1 1 /* 2 * DoSomeShit.java2 * ShitToDo.java 3 3 * Copyright (C) 2005-2007 James Lee 4 4 * … … 22 22 package org.thestaticvoid.iriverter; 23 23 24 public interface DoSomeShit{24 public interface ShitToDo { 25 25 public void run(ProgressDialogInfo progressDialogInfo) throws FailedToDoSomeShit; 26 26 public void cancel(); trunk/src/org/thestaticvoid/iriverter/SingleVideo.java
r158 r159 132 132 } 133 133 134 public DoSomeShit[] getShitToDo() {134 public ShitToDo[] getShitToDo() { 135 135 java.util.List shitToDo = new ArrayList(); 136 137 136 138 137 java.util.List commandList = MencoderCommand.prepareBaseCommandList(inputVideo, getOutputVideo(), mplayerPath, inputVideoInfo, 0); … … 158 157 } 159 158 160 return ( DoSomeShit[]) shitToDo.toArray(new DoSomeShit[]{});159 return (ShitToDo[]) shitToDo.toArray(new ShitToDo[]{}); 161 160 } 162 161 }
