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

Function subtitle_add_all_cb

gtk/src/subtitlehandler.c:1326–1361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1324}
1325
1326G_MODULE_EXPORT void
1327subtitle_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
1363G_MODULE_EXPORT void
1364subtitle_clear_cb (GSimpleAction *action, GVariant *param, gpointer data)

Callers

nothing calls this directly

Calls 12

ghb_udFunction · 0.85
ghb_dict_get_intFunction · 0.85
ghb_lookup_titleFunction · 0.85
clear_subtitle_list_uiFunction · 0.85
ghb_dict_get_stringFunction · 0.85
hb_list_countFunction · 0.85
subtitle_add_trackFunction · 0.85
subtitle_refresh_list_uiFunction · 0.85
ghb_update_summary_infoFunction · 0.85
ghb_live_resetFunction · 0.85

Tested by

no test coverage detected