| 708 | } |
| 709 | |
| 710 | void |
| 711 | ghb_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 | |
| 737 | gchar * |
| 738 | ghb_get_user_config_dir (const char *subdir) |
no test coverage detected