#define LANG_TABLE_SIZE (sizeof(language_table)/ sizeof(iso639_lang_t))
static void
-del_tree(const gchar *name)
+del_tree(const gchar *name, gboolean del_top)
{
const gchar *file;
{
gchar *path;
path = g_strdup_printf("%s/%s", name, file);
- del_tree(path);
+ del_tree(path, TRUE);
g_free(path);
file = g_dir_read_name(gdir);
}
- g_rmdir(name);
+ if (del_top)
+ g_rmdir(name);
}
else
{
extern void hb_get_tempory_directory(hb_handle_t *h, char path[512]);
void
-ghb_hb_cleanup()
+ghb_hb_cleanup(gboolean partial)
{
char dir[512];
hb_get_tempory_directory(h, dir);
- del_tree(dir);
+ del_tree(dir, !partial);
}
static hb_audio_config_t*
vcodec = HB_VCODEC_XVID;
ghb_ui_update_int(ud, "video_codec", vcodec);
}
+ gboolean decomb = ghb_settings_get_bool(settings, "decomb");
+ gboolean vfr = ghb_settings_get_bool(settings, "variable_frame_rate");
+ if (decomb && !vfr)
+ {
+ message = g_strdup_printf(
+ "Decomb is intended to be used in conjunction\n"
+ "with variable frame rate.\n\n"
+ "Would you like me to enable VFR for you?");
+ if (ghb_message_dialog(GTK_MESSAGE_WARNING, message, "No", "Yes"))
+ {
+ ghb_ui_update_int(ud, "variable_frame_rate", TRUE);
+ }
+ g_free(message);
+ }
return TRUE;
}
{
// Use default settings
hb_filter_decomb.settings = NULL;
- hb_filter_decomb.settings = "1:2:6:9:40:16:16";
hb_list_add( job->filters, &hb_filter_decomb );
}
if( job->deinterlace )