Skip to content

Commit

Permalink
old queue check cause crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Anime4000 committed Jul 9, 2024
1 parent e2d501f commit 3b04e35
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 41 deletions.
6 changes: 3 additions & 3 deletions IFME/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[assembly: AssemblyDescription("Allow user to compress raw media")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Anime4000")]
[assembly: AssemblyProduct("Luminous Veil")]
[assembly: AssemblyProduct("Celestial Rhapsody")]
[assembly: AssemblyCopyright("© 2024 Anime4000")]
[assembly: AssemblyTrademark("Anime4000, MulticoreWare, VideoLAN, IETF, Xiph.Org Foundation, Josh Coalson, Erik de Castro Lopo, Jean Le Feuvre, People@GPAC, FFmpeg Team, Nero AG, Moritz Bunkus, AMD, Intel, Nvidia, Google, Alliance for Open Media, et al.")]
[assembly: AssemblyCulture("")]
Expand All @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("8.3.3")]
[assembly: AssemblyFileVersion("8.3.3")]
[assembly: AssemblyVersion("8.3.4")]
[assembly: AssemblyFileVersion("8.3.4")]
38 changes: 0 additions & 38 deletions IFME/frmMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -403,44 +403,6 @@ private void lstFile_SelectedIndexChanged(object sender, EventArgs e)
chkSubHard.Checked = false;
chkAdvTrim.Checked = false;
}

// Check queue consistency
if (lstFile.SelectedItems.Count > 1)
{
var fmt = (lstFile.SelectedItems[0].Tag as MediaQueue).OutputFormat;
var pro = (lstFile.SelectedItems[0].Tag as MediaQueue).ProfileId;

var fmtFail = false;
var proFail = false;

foreach (ListViewItem item in lstFile.SelectedItems)
{
var of = (item.Tag as MediaQueue).OutputFormat;
var pi = (item.Tag as MediaQueue).ProfileId;

if (Equals(fmt, of))
{
if (!fmtFail)
fmt = of;
}
else
{
cboFormat.SelectedIndex = -1;
fmtFail = true;
}

if (Equals(pro, pi))
{
if (!proFail)
pro = pi;
}
else
{
cboProfile.SelectedIndex = -1;
proFail = true;
}
}
}
}

private void lstFile_DragDrop(object sender, DragEventArgs e)
Expand Down
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Version 8.3.4 (Celestial Rhapsody)
----------------------------------
[Fixed] Check Queue Consistency code cause invalid index crash, such old code is removed

Version 8.3.3 (Luminous Veil)
-----------------------------
[Fixed] Add another file when selected profile is blank cause a crash
Expand Down

0 comments on commit 3b04e35

Please sign in to comment.