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:
Robin Gareus 2021-09-09 21:21:30 +02:00
parent 27b64ac36c
commit a8092461f7
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 1 additions and 1 deletions

View File

@ -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;