mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-27 21:35:37 +00:00
Pause between polling the mkvmerge process
Otherwise polling all the time uses excessive amounts of CPU power. Fixes #762.
This commit is contained in:
parent
39d7f879bd
commit
3f7db06e3c
@ -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
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user