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

Function file_has_allowed_extension

gtk/src/callbacks.c:1690–1705  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1688}
1689
1690static gboolean
1691file_has_allowed_extension (GFile *file, hb_list_t *exclude_extensions)
1692{
1693 const char *filename = g_file_peek_path(file);
1694
1695 for (int i = 0; i < hb_list_count(exclude_extensions); i++)
1696 {
1697 if (hb_str_ends_with(filename, hb_list_item(exclude_extensions, i)))
1698 {
1699 g_debug("Excluded file %s", filename);
1700 return FALSE;
1701 }
1702 }
1703 g_debug("Found file %s", filename);
1704 return TRUE;
1705}
1706
1707static void
1708scan_directory (GFile *dir, GListStore *file_list, gboolean recursive)

Callers 1

scan_directoryFunction · 0.85

Calls 3

hb_list_countFunction · 0.85
hb_str_ends_withFunction · 0.85
hb_list_itemFunction · 0.85

Tested by

no test coverage detected