| 1328 | } |
| 1329 | |
| 1330 | gint |
| 1331 | ghb_subtitle_track_source(GhbValue *settings, gint track) |
| 1332 | { |
| 1333 | gint title_id, titleindex; |
| 1334 | const hb_title_t *title; |
| 1335 | |
| 1336 | if (track == -2) |
| 1337 | return IMPORTSRT; |
| 1338 | if (track < 0) |
| 1339 | return VOBSUB; |
| 1340 | title_id = ghb_dict_get_int(settings, "title"); |
| 1341 | title = ghb_lookup_title(title_id, &titleindex); |
| 1342 | if (title == NULL) |
| 1343 | return VOBSUB; |
| 1344 | |
| 1345 | hb_subtitle_t * sub; |
| 1346 | sub = hb_list_item( title->list_subtitle, track); |
| 1347 | if (sub != NULL) |
| 1348 | return sub->source; |
| 1349 | else |
| 1350 | return VOBSUB; |
| 1351 | } |
| 1352 | |
| 1353 | const gchar* |
| 1354 | ghb_subtitle_track_lang(GhbValue *settings, gint track) |
nothing calls this directly
no test coverage detected