}
// Open activity log.
// TODO: Put this in the same directory as the encode destination
- config = ghb_get_user_config_dir();
+ config = ghb_get_user_config_dir(NULL);
path = g_strdup_printf("%s/%s", config, "Activity.log");
ud->activity_log = g_io_channel_new_file (path, "w", NULL);
+ ud->job_activity_log = NULL;
ghb_ui_update(ud, "activity_location", ghb_string_value(path));
g_free(path);
g_free(config);
ghb_hal_init();
#endif
- ud = g_malloc(sizeof(signal_user_data_t));
+ ud = g_malloc0(sizeof(signal_user_data_t));
ud->debug = ghb_debug;
- ud->cancel_encode = FALSE;
g_log_set_handler (NULL, G_LOG_LEVEL_DEBUG, debug_log_handler, ud);
ud->settings = ghb_settings_new();
- ud->queue = NULL;
- ud->current_job = NULL;
- ud->current_dvd_device = NULL;
- ud->dont_clear_presets = FALSE;
// Enable events that alert us to media change events
watch_volumes (ud);
ud->builder = create_builder_or_die (BUILDER_NAME);
}
// Reload and check status of the last saved queue
g_idle_add((GSourceFunc)ghb_reload_queue, ud);
+ g_idle_add((GSourceFunc)ghb_check_update, ud);
// Start timer for monitoring libhb status, 500ms
g_timeout_add (500, ghb_timer_cb, (gpointer)ud);
// Everything should be go-to-go. Lets rock!