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

Function ghb_create_source_label

gtk/src/hb-backend.c:2289–2318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2287}
2288
2289gchar*
2290ghb_create_source_label(const hb_title_t * title)
2291{
2292 char * volname;
2293 char * source;
2294
2295 if (title != NULL && title->name != NULL && title->name[0] != 0)
2296 {
2297 volname = strdup(title->name);
2298 if (title->type == HB_DVD_TYPE)
2299 {
2300 ghb_dvd_sanitize_volname(volname);
2301 }
2302 if (title->type == HB_BD_TYPE)
2303 {
2304 source = g_strdup_printf(_("%s - (%05d.MPLS)"),
2305 volname, title->playlist);
2306 g_free(volname);
2307 }
2308 else
2309 {
2310 source = volname;
2311 }
2312 }
2313 else
2314 {
2315 source = g_strdup(_("No Title Found"));
2316 }
2317 return source;
2318}
2319
2320static gboolean
2321uppers_and_unders(gchar *str)

Callers 1

ghb_set_title_settingsFunction · 0.85

Calls 1

ghb_dvd_sanitize_volnameFunction · 0.85

Tested by

no test coverage detected