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

Function update_title_duration

gtk/src/callbacks.c:1174–1194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1172}
1173
1174static void
1175update_title_duration(signal_user_data_t *ud)
1176{
1177 gint hh, mm, ss;
1178 gint64 duration;
1179 gchar *text;
1180 GtkWidget *widget;
1181 int title_id, titleindex;
1182 const hb_title_t *title;
1183
1184 title_id = ghb_dict_get_int(ud->settings, "title");
1185 title = ghb_lookup_title(title_id, &titleindex);
1186 widget = ghb_builder_widget("title_duration");
1187
1188 duration = title_range_get_duration(ud->settings, title);
1189 ghb_break_duration(duration, &hh, &mm, &ss);
1190
1191 text = g_strdup_printf("%02d:%02d:%02d", hh, mm, ss);
1192 gtk_label_set_text(GTK_LABEL(widget), text);
1193 g_free(text);
1194}
1195
1196void ghb_show_container_options(signal_user_data_t *ud)
1197{

Callers 3

ghb_load_post_settingsFunction · 0.85
ghb_update_title_infoFunction · 0.85
set_has_chapter_markersFunction · 0.85

Calls 5

ghb_dict_get_intFunction · 0.85
ghb_lookup_titleFunction · 0.85
ghb_builder_widgetFunction · 0.85
title_range_get_durationFunction · 0.85
ghb_break_durationFunction · 0.85

Tested by

no test coverage detected