OSDN Git Service

LinGui: add a flush to activity log output to prevent large chunks of it
authorjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Fri, 5 Dec 2008 16:06:15 +0000 (16:06 +0000)
committerjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Fri, 5 Dec 2008 16:06:15 +0000 (16:06 +0000)
from being dropped on a crash.

git-svn-id: svn://localhost/HandBrake/trunk@2010 b64f7644-9d1e-0410-96f1-a4d463321fa5

gtk/src/callbacks.c

index 01b8365..b48e156 100644 (file)
@@ -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)