OSDN Git Service

Rate limit hb_error() messages to at most 1 message per second of the same message...
authoreddyg <eddyg@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Tue, 24 Nov 2009 23:16:27 +0000 (23:16 +0000)
committereddyg <eddyg@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Tue, 24 Nov 2009 23:16:27 +0000 (23:16 +0000)
commit407738c28ee0d8c9ba87c49c6fd50118157622ae
tree942cebe393f611a4ff210bb70e342480e37b4152
parentbb0e12c200183b38d05231b700e868ef15cf7585
Rate limit hb_error() messages to at most 1 message per second of the same message. Repeats will be counted and presented as a count when 1 second has elapsed since the first error of a sequence, or an error message with a different string.
Also modified dvdnav to use hb_error() to take advantage of the limiting.

This works around a real bug from dvdnav where the Mac GUI becomes unresponsive during the output of large numbers of errors.

git-svn-id: svn://localhost/HandBrake/trunk@2971 b64f7644-9d1e-0410-96f1-a4d463321fa5
libhb/common.c
libhb/dvdnav.c