mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 03:42:53 +00:00
Fixed the "abort" button under Windows.
This commit is contained in:
parent
89ec153718
commit
9a87e12840
@ -1,3 +1,8 @@
|
||||
2003-10-11 Moritz Bunkus <moritz@bunkus.org>
|
||||
|
||||
* mmg: bug fix: The 'abort' button was doing nothing under
|
||||
Windows.
|
||||
|
||||
2003-10-06 Moritz Bunkus <moritz@bunkus.org>
|
||||
|
||||
* mmg: bug fix: Audio, video and subtitle track selection was
|
||||
|
@ -37,10 +37,11 @@
|
||||
mux_dialog::mux_dialog(wxWindow *parent):
|
||||
wxDialog(parent, -1, "mkvmerge is running", wxDefaultPosition,
|
||||
#ifdef SYS_WINDOWS
|
||||
wxSize(500, 560), wxCAPTION) {
|
||||
wxSize(500, 560),
|
||||
#else
|
||||
wxSize(500, 520), wxCAPTION) {
|
||||
wxSize(500, 520),
|
||||
#endif
|
||||
wxCAPTION) {
|
||||
char c;
|
||||
long value;
|
||||
wxString line, tmp;
|
||||
@ -183,7 +184,11 @@ void mux_dialog::on_save_log(wxCommandEvent &evt) {
|
||||
}
|
||||
|
||||
void mux_dialog::on_abort(wxCommandEvent &evt) {
|
||||
wxKill(pid);
|
||||
#if defined(SYS_WINDOWS)
|
||||
wxKill(pid, wxSIGKILL);
|
||||
#else
|
||||
wxKill(pid, wxSIGTERM);
|
||||
#endif
|
||||
}
|
||||
|
||||
mux_process::mux_process(mux_dialog *mdlg):
|
||||
@ -197,7 +202,13 @@ void mux_process::OnTerminate(int pid, int status) {
|
||||
s.Printf("mkvmerge %s with a return code of %d. %s\n",
|
||||
(status != 0) && (status != 1) ? "FAILED" : "finished", status,
|
||||
status == 0 ? "Everything went fine." :
|
||||
status == 1 ? "There were warnings." : "There were ERRORs.");
|
||||
status == 1 ? "There were warnings"
|
||||
#if defined(SYS_WINDOWS)
|
||||
", or the process was terminated."
|
||||
#else
|
||||
"."
|
||||
#endif
|
||||
: status == 2 ? "There were ERRORs." : "");
|
||||
dlg->update_window(s);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user