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

Function get_file_label

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

Source from the content-addressed store, hash-verified

2376}
2377
2378static gchar*
2379get_file_label(const gchar *filename)
2380{
2381 gchar *base, *pos, *end;
2382
2383 base = g_path_get_basename(filename);
2384 pos = strrchr(base, '.');
2385 if (pos != NULL)
2386 {
2387 // If the last '.' is within 4 chars of end of name, assume
2388 // there is an extension we want to strip.
2389 end = &base[strlen(base) - 1];
2390 if (end - pos <= 4)
2391 *pos = 0;
2392 }
2393 return base;
2394}
2395
2396gchar*
2397ghb_create_volume_label(const hb_title_t * title)

Callers 1

ghb_create_volume_labelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected