+ if (this.InvokeRequired)\r
+ {\r
+ this.BeginInvoke(new UpdateUiHandler(EncodeQueueEncodeEnded), new[] { sender, e });\r
+ return;\r
+ }\r
+\r
+ ProgressBarStatus.Visible = false;\r
+ lbl_encodeStatus.Visible = false;\r
+\r
+ if (!this.noQt)\r
+ btn_playQT.Enabled = true;\r
+ btn_playVLC.Enabled = true;\r
+\r
+ this.Text = this.Text.Replace(" (Encoding)", string.Empty);\r
+\r
+ // Get the sample filename\r
+ if (this.mainWindow.text_destination.Text != string.Empty)\r
+ this.currentlyPlaying =\r
+ this.mainWindow.text_destination.Text.Replace(".mp4", "_sample.mp4").Replace(".m4v", "_sample.m4v").\r
+ Replace(".mkv", "_sample.mkv");\r
+\r
+ // Play back in QT or VLC\r
+ if (!playWithVlc)\r
+ Play();\r
+ else\r
+ PlayVlc();\r
+ }\r
+ catch (Exception exc)\r
+ {\r
+ Main.ShowExceptiowWindow("An Unexpected error has occured", exc.ToString());\r