add: while ((name = g_dir_read_name (dir)) != NULL) { if (g_ascii_strcasecmp (name, "mpegav") == 0) { GDir *subdir; gchar *subdirname = g_build_path (G_DIR_SEPARATOR_S, cache->mountpoint, name, NULL);
context: cd_cache_disc_is_vcd (CdCache *cache,                      GError **error){  GDir *dir;  MediaType type = MEDIA_TYPE_DATA;  /* open disc and open mount */  if (!cd_cache_open_device (cache, error) ||      !(dir = cd_cache_open_mountpoint (cache, error)))    return MEDIA_TYPE_ERROR;  //..  g_dir_close (dir);  return type;}