From a3ea259898ef60b4be166aa791b41e25c509b079 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Fri, 5 Dec 2008 16:06:15 +0000 Subject: [PATCH] LinGui: add a flush to activity log output to prevent large chunks of it from being dropped on a crash. git-svn-id: svn://localhost/HandBrake/trunk@2010 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/callbacks.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index 01b83652..b48e1568 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -1945,9 +1945,13 @@ ghb_log_cb(GIOChannel *source, GIOCondition cond, gpointer data) } g_io_channel_write_chars (ud->activity_log, text, length, &length, NULL); + g_io_channel_flush(ud->activity_log, NULL); if (ud->job_activity_log) + { g_io_channel_write_chars (ud->job_activity_log, text, length, &length, NULL); + g_io_channel_flush(ud->job_activity_log, NULL); + } g_free(text); } if (status != G_IO_STATUS_NORMAL) -- 2.11.0