summaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2008-12-05 16:06:15 +0000
committerjstebbins <[email protected]>2008-12-05 16:06:15 +0000
commit69979d068cb96f56487a22d10090183535207c84 (patch)
tree1823b46660d5d6f23086657a343518ed3f99b6fd /gtk
parente1cbbcb2bbfd8307a1f2941549f97a0d174defd8 (diff)
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
Diffstat (limited to 'gtk')
-rw-r--r--gtk/src/callbacks.c4
1 files changed, 4 insertions, 0 deletions
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)