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

Function audio_add_all_cb

gtk/src/audiohandler.c:1450–1487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1448}
1449
1450G_MODULE_EXPORT void
1451audio_add_all_cb (GSimpleAction *action, GVariant *param, gpointer data)
1452{
1453 int title_id, titleindex;
1454 const hb_title_t *title;
1455 signal_user_data_t *ud = ghb_ud();
1456
1457 // Add the current audio settings to the list.
1458 clear_audio_list_settings(ud->settings);
1459 clear_audio_list_ui();
1460
1461 title_id = ghb_dict_get_int(ud->settings, "title");
1462 title = ghb_lookup_title(title_id, &titleindex);
1463 GhbValue *pref_audio = ghb_dict_get_value(ud->settings, "AudioList");
1464
1465 int pref_count = ghb_array_len(pref_audio);
1466
1467 int ii;
1468 for (ii = 0; ii < pref_count; ii++)
1469 {
1470 GhbValue *asettings;
1471 int track = 0;
1472
1473 do
1474 {
1475
1476 asettings = audio_select_and_add_track(title, ud->settings,
1477 pref_audio, "und", ii,
1478 track);
1479 if (asettings != NULL)
1480 {
1481 track = ghb_dict_get_int(asettings, "Track") + 1;
1482 }
1483 } while (asettings != NULL);
1484 }
1485 audio_refresh_list_ui(ud);
1486 ghb_update_summary_info(ud);
1487}
1488
1489G_MODULE_EXPORT void
1490audio_row_activated_cb (GtkTreeView *tv, GtkTreePath *tp,

Callers

nothing calls this directly

Calls 9

ghb_udFunction · 0.85
clear_audio_list_uiFunction · 0.85
ghb_dict_get_intFunction · 0.85
ghb_lookup_titleFunction · 0.85
ghb_dict_get_valueFunction · 0.85
audio_refresh_list_uiFunction · 0.85
ghb_update_summary_infoFunction · 0.85

Tested by

no test coverage detected