Do not terminate on G_LOG_LEVEL_CRITICAL
There are cases where gtk modules log critical messages, notably gtk-2.0/modules/libgail.so can trigger `g_log: g_object_unref: assertion 'G_IS_OBJECT (object)' failed`, which should not cause Ardour to terminate.
This commit is contained in:
parent
27b64ac36c
commit
a8092461f7
@ -123,9 +123,9 @@ gui_jack_error ()
|
||||
static void ardour_g_log (const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data) {
|
||||
switch (log_level) {
|
||||
case G_LOG_FLAG_FATAL:
|
||||
case G_LOG_LEVEL_CRITICAL:
|
||||
fatal << "g_log: " << message << endmsg;
|
||||
break;
|
||||
case G_LOG_LEVEL_CRITICAL:
|
||||
case G_LOG_LEVEL_ERROR:
|
||||
error << "g_log: " << message << endmsg;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user