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

Function item_complete_name

gtk/src/notifications.c:29–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27static int n_failed = 0;
28
29static char *
30item_complete_name (const char *filename)
31{
32 if (filename == NULL)
33 return NULL;
34
35 g_autofree char *name = g_filename_display_basename(filename);
36
37 if (g_utf8_strlen(name, -1) > 64)
38 {
39 g_autofree char *shortname = g_utf8_substring(name, 0, 64);
40 return g_strdup_printf("%s…", shortname);
41 }
42 else
43 {
44 return g_steal_pointer(&name);
45 }
46}
47
48static char *
49queue_complete_message (void)

Callers 1

notify_doneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected