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

Function ghb_subtitle_track_source

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

Source from the content-addressed store, hash-verified

1328}
1329
1330gint
1331ghb_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
1353const gchar*
1354ghb_subtitle_track_lang(GhbValue *settings, gint track)

Callers

nothing calls this directly

Calls 3

ghb_dict_get_intFunction · 0.85
ghb_lookup_titleFunction · 0.85
hb_list_itemFunction · 0.85

Tested by

no test coverage detected