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

Function dvd_source_activate_cb

gtk/src/callbacks.c:1926–1945  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1924}
1925
1926G_MODULE_EXPORT void
1927dvd_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
1947void
1948ghb_update_destination_extension(signal_user_data_t *ud)

Callers

nothing calls this directly

Calls 5

ghb_get_scan_sourceFunction · 0.85
ghb_dict_set_stringFunction · 0.85
ghb_pref_saveFunction · 0.85
ghb_dvd_set_currentFunction · 0.85
ghb_do_scanFunction · 0.85

Tested by

no test coverage detected