diff options
author | jstebbins <[email protected]> | 2008-12-22 22:28:59 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2008-12-22 22:28:59 +0000 |
commit | 6b2d044fd934c0d099f98d61780b4810335e9cb2 (patch) | |
tree | 465c55cb4be86435c36f853f2fd75c516bb69923 /gtk | |
parent | a98e870f0f22441aeeb3fc484ae81b8dabc1b533 (diff) |
LinGui: Fix a problem with individual activity logs.
Race would close them immediately after opening sometimes.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2043 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/src/callbacks.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index d69992fae..74b982e2a 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -1773,6 +1773,9 @@ ghb_backend_events(signal_user_data_t *ud) } gtk_progress_bar_set_fraction (progress, 1.0); ghb_clear_queue_state(GHB_STATE_WORKDONE); + if (ud->job_activity_log) + g_io_channel_unref(ud->job_activity_log); + ud->job_activity_log = NULL; if (!ud->cancel_encode) ud->current_job = ghb_start_next_job(ud, FALSE); else @@ -1781,8 +1784,6 @@ ghb_backend_events(signal_user_data_t *ud) ghb_settings_set_int(js, "job_status", qstatus); ghb_save_queue(ud->queue); ud->cancel_encode = FALSE; - g_io_channel_unref(ud->job_activity_log); - ud->job_activity_log = NULL; } else if (status.queue.state & GHB_STATE_MUXING) { |