Pause between polling the mkvmerge process

Otherwise polling all the time uses excessive amounts of CPU
power. Fixes #762.
This commit is contained in:
Moritz Bunkus 2012-06-03 15:25:41 +02:00
parent 39d7f879bd
commit 3f7db06e3c
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2012-06-03 Moritz Bunkus <moritz@bunkus.org>
* mmg: bug fix: Fixed mmg's excessive CPU usage during muxing.
2012-06-01 Moritz Bunkus <moritz@bunkus.org>
* mkvmerge: bug fix: Reading DTS from AVI files often resulted in

View File

@ -22,6 +22,7 @@
#include <wx/listctrl.h>
#include <wx/statusbr.h>
#include <wx/statline.h>
#include <wx/utils.h>
#include "common/at_scope_exit.h"
#include "common/fs_sys_helpers.h"
@ -378,6 +379,8 @@ mux_thread::Entry() {
if (TestDestroy())
return nullptr;
char_read = read_input(c, eof);
if (!char_read && !eof)
wxMilliSleep(100);
}
if ((c == '\n') || (c == '\r') || eof) {