private void AsyncOpenFile(string filename)
{
// hobBIT
StopMPlayer();
StartMPlayer(filename);
RemuxProgressBar.Maximum = 100;
RemoveSup();
OutputFileBrowseButton.Enabled = false;
RemuxButton.Text = "Cancel";
RemuxButton.Enabled = true;
Quit.Enabled = false;
cbxUseAsyncIO.Enabled = false;
cbxBypassAudioProcessing.Enabled = false;
cbxMlpToAc3.Enabled = false;
DisableNumerics();
TrimEnd = new TimeSpan(0);
TrimStart = new TimeSpan(0);
ElementaryStreamsListBox.Items.Clear();
ElementaryStreamsListBox.Enabled = false;
InputFileTextBox.Text = String.Empty;
DtcpInfo.Nodes.Clear();
DtcpInfo.Nodes.Add("DTCP Info");
DtcpInfo.Nodes[0].Nodes.Add("DTCP Descriptor not present");
TsFormatRadioButton.Enabled = false;
TsFormatRadioButton.Checked = false;
M2tsFormatRadioButton.Enabled = false;
M2tsFormatRadioButton.Checked = false;
BluRayFormatRadioButton.Enabled = false;
BluRayFormatRadioButton.Checked = false;
MKVFormatRadioButton.Enabled = false;
MKVFormatRadioButton.Checked = false;
DemuxFormatRadioButton.Enabled = false;
DemuxFormatRadioButton.Checked = false;
length = new TimeSpan();
pidList = new List<ushort>();
pidsToKeep = new List<ushort>();
this.Cursor = Cursors.WaitCursor;
backgroundWorker2.RunWorkerAsync(filename);
}