Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Error when proceed, file not exist
  • Loading branch information
Anime4000 committed Oct 6, 2015
1 parent 8bfbdc2 commit 84bb82f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ $RECYCLE.BIN/
*.msp

# IFME build files.
*.exe
build
installer/*.mp3
installer/*.dll
Expand Down
7 changes: 7 additions & 0 deletions ifme/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,13 @@ static int EncodingStart(string queueFile, bool force)
{
id++;

// Only file exist get encoded
if (File.Exists(item.Data.File))
{
id++;
continue;
}

// Only checked list get encoded
if (!item.IsEnable)
{
Expand Down
15 changes: 11 additions & 4 deletions ifme/frmMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1666,22 +1666,29 @@ private void bgwEncoding_DoWork(object sender, DoWorkEventArgs e)
{
id++;

// Only file exist get encoded
if (File.Exists(item.Data.File))
{
id++;
continue;
}

// Only checked list get encoded
if (!item.IsEnable)
{
id++;
continue;
}

// Remove temp file
MediaEncoder.CleanUp();

// Time current queue
var SessionCurrent = DateTime.Now;

// Log current queue
InvokeLog("Processing: " + item.Data.File);

// Remove temp file
MediaEncoder.CleanUp();

// AviSynth aware
string file = item.Data.File;
string filereal = GetStream.AviSynthGetFile(file);
Expand Down Expand Up @@ -1758,7 +1765,7 @@ private void bgwEncoding_RunWorkerCompleted(object sender, RunWorkerCompletedEve
}
else
{
if (Properties.Settings.Default.SoundFinish)
if (Default.SoundFinish)
{
SoundPlayer notification = new SoundPlayer(Global.Sounds.Finish);
notification.Play();
Expand Down

0 comments on commit 84bb82f

Please sign in to comment.