| 1924 | } |
| 1925 | |
| 1926 | G_MODULE_EXPORT void |
| 1927 | dvd_source_activate_cb(GSimpleAction *action, GVariant *param, |
| 1928 | signal_user_data_t *ud) |
| 1929 | { |
| 1930 | const gchar *filename; |
| 1931 | const gchar *sourcename; |
| 1932 | |
| 1933 | // ghb_do_scan replaces "source" key in dict, so we must |
| 1934 | // be finished with sourcename before calling ghb_do_scan |
| 1935 | // since the memory it references will be freed |
| 1936 | sourcename = ghb_get_scan_source(); |
| 1937 | filename = g_variant_get_string(param, NULL); |
| 1938 | if (strcmp(sourcename, filename) != 0) |
| 1939 | { |
| 1940 | ghb_dict_set_string(ud->prefs, "default_source", filename); |
| 1941 | ghb_pref_save(ud->prefs, "default_source"); |
| 1942 | ghb_dvd_set_current(filename, ud); |
| 1943 | } |
| 1944 | ghb_do_scan(ud, filename, 0, TRUE); |
| 1945 | } |
| 1946 | |
| 1947 | void |
| 1948 | ghb_update_destination_extension(signal_user_data_t *ud) |
nothing calls this directly
no test coverage detected