| 1448 | } |
| 1449 | |
| 1450 | G_MODULE_EXPORT void |
| 1451 | audio_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 | |
| 1489 | G_MODULE_EXPORT void |
| 1490 | audio_row_activated_cb (GtkTreeView *tv, GtkTreePath *tp, |
nothing calls this directly
no test coverage detected