| 1324 | } |
| 1325 | |
| 1326 | G_MODULE_EXPORT void |
| 1327 | subtitle_add_all_cb (GSimpleAction *action, GVariant *param, gpointer data) |
| 1328 | { |
| 1329 | // Add the current subtitle settings to the list. |
| 1330 | gboolean one_burned = FALSE; |
| 1331 | gint track; |
| 1332 | signal_user_data_t *ud = ghb_ud(); |
| 1333 | |
| 1334 | const hb_title_t *title; |
| 1335 | int title_id, titleindex; |
| 1336 | title_id = ghb_dict_get_int(ud->settings, "title"); |
| 1337 | title = ghb_lookup_title(title_id, &titleindex); |
| 1338 | if (title == NULL) |
| 1339 | { |
| 1340 | return; |
| 1341 | } |
| 1342 | |
| 1343 | clear_subtitle_list_settings(ud->settings); |
| 1344 | clear_subtitle_list_ui(); |
| 1345 | |
| 1346 | const char *mux_id; |
| 1347 | const hb_container_t *mux; |
| 1348 | |
| 1349 | mux_id = ghb_dict_get_string(ud->settings, "FileFormat"); |
| 1350 | mux = ghb_lookup_container_by_name(mux_id); |
| 1351 | |
| 1352 | int count = hb_list_count(title->list_subtitle); |
| 1353 | for (track = 0; track < count; track++) |
| 1354 | { |
| 1355 | subtitle_add_track(ud, ud->settings, track, mux->format, |
| 1356 | FALSE, FALSE, VOBSUB, FALSE, &one_burned); |
| 1357 | } |
| 1358 | subtitle_refresh_list_ui(ud); |
| 1359 | ghb_update_summary_info(ud); |
| 1360 | ghb_live_reset(ud); |
| 1361 | } |
| 1362 | |
| 1363 | G_MODULE_EXPORT void |
| 1364 | subtitle_clear_cb (GSimpleAction *action, GVariant *param, gpointer data) |
nothing calls this directly
no test coverage detected