diff options
Diffstat (limited to 'fiv-io-benchmark.c')
-rw-r--r-- | fiv-io-benchmark.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fiv-io-benchmark.c b/fiv-io-benchmark.c index d70d1c9..48c5b79 100644 --- a/fiv-io-benchmark.c +++ b/fiv-io-benchmark.c @@ -33,7 +33,9 @@ static void one_file(const char *filename) { double since_us = timestamp(); - cairo_surface_t *loaded_by_us = fiv_io_open(filename, NULL); + gchar *uri = g_filename_to_uri(filename, NULL, NULL); + cairo_surface_t *loaded_by_us = fiv_io_open(uri, NULL, FALSE, NULL); + g_free(uri); if (!loaded_by_us) return; |