| 2287 | } |
| 2288 | |
| 2289 | gchar* |
| 2290 | ghb_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 | |
| 2320 | static gboolean |
| 2321 | uppers_and_unders(gchar *str) |
no test coverage detected