MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / ghb_select_default_preset

Function ghb_select_default_preset

gtk/src/presets.c:710–735  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

708}
709
710void
711ghb_select_default_preset(signal_user_data_t *ud)
712{
713 hb_preset_index_t *path;
714
715 path = hb_presets_get_default_index();
716 if (path == NULL || path->depth == 0)
717 {
718 // No default set, find original "default" preset
719 g_free(path);
720 path = hb_preset_search_index("Fast 1080p30", 1, HB_PRESET_TYPE_ALL);
721 }
722 if (path == NULL || path->depth == 0)
723 {
724 int index[2] = {0, 0};
725
726 // Could not find original default, try first available preset
727 g_free(path);
728 path = hb_preset_index_init(index, 2);
729 }
730 if (path != NULL)
731 {
732 select_preset2(ud, path);
733 g_free(path);
734 }
735}
736
737gchar *
738ghb_get_user_config_dir (const char *subdir)

Callers 3

_ghb_idle_ui_initFunction · 0.85
preset_write_responseFunction · 0.85
presets_reload_action_cbFunction · 0.85

Calls 4

hb_preset_search_indexFunction · 0.85
hb_preset_index_initFunction · 0.85
select_preset2Function · 0.85

Tested by

no test coverage detected