aboutsummaryrefslogtreecommitdiff
path: root/fiv-io-benchmark.c
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-12-30 21:47:28 +0100
committerPřemysl Eric Janouch <p@janouch.name>2021-12-30 22:32:29 +0100
commit380ddd540bd93850e4df254200cba5b1fdf05cc6 (patch)
tree3730d9cc0b3150b9084b612014554ab39ace8b15 /fiv-io-benchmark.c
parent8b232dc44464a70b53c3b6e1616de21b52e13e67 (diff)
downloadfiv-380ddd540bd93850e4df254200cba5b1fdf05cc6.tar.gz
fiv-380ddd540bd93850e4df254200cba5b1fdf05cc6.tar.xz
fiv-380ddd540bd93850e4df254200cba5b1fdf05cc6.zip
Convert all loading to use GFile
Now we're able to make use of GVfs, with some caveats.
Diffstat (limited to 'fiv-io-benchmark.c')
-rw-r--r--fiv-io-benchmark.c4
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;