From de1251bfa974fdee41877da5bd1d477162adf084 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Wed, 13 May 2015 12:08:50 +0200 Subject: file: read complete filename path --- plugins/file/uca-file-camera.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/file/uca-file-camera.c b/plugins/file/uca-file-camera.c index 632b8e8..0553194 100644 --- a/plugins/file/uca-file-camera.c +++ b/plugins/file/uca-file-camera.c @@ -74,7 +74,6 @@ read_tiff_meta_data (UcaFileCameraPrivate *priv, const gchar *fname) TIFFClose (file); } - static gboolean read_tiff_data (UcaFileCameraPrivate *priv, const gchar *fname, gpointer buffer) { @@ -137,7 +136,7 @@ update_fnames (UcaFileCameraPrivate *priv, GError **error) break; if (g_str_has_suffix (fname, ".tiff") || g_str_has_suffix (fname, ".tif")) - priv->fnames = g_list_append (priv->fnames, g_strdup (fname)); + priv->fnames = g_list_append (priv->fnames, g_build_filename (priv->path, fname, NULL)); } priv->fnames = g_list_sort (priv->fnames, (GCompareFunc) g_strcmp0); -- cgit v1.2.3