From 69979d068cb96f56487a22d10090183535207c84 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Fri, 5 Dec 2008 16:06:15 +0000 Subject: LinGui: add a flush to activity log output to prevent large chunks of it from being dropped on a crash. git-svn-id: svn://svn.handbrake.fr/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 01b836520..b48e1568a 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) -- cgit v1.2.3