1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
@@ -, +, @@
returned
thumbnailer/gnome-thumbnailer-skeleton.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
--- a/thumbnailer/gnome-thumbnailer-skeleton.c
+++ a/thumbnailer/gnome-thumbnailer-skeleton.c
@@ -315,11 +315,15 @@ int main (int argc, char **argv)
#endif
g_free (input_filename);
- if (!pixbuf) {
+ if (!pixbuf && error) {
g_warning ("Could not thumbnail '%s': %s", filenames[0], error->message);
g_error_free (error);
g_strfreev (filenames);
return 1;
+ } else if (!pixbuf) {
+ g_warning ("Could not thumbnail '%s'", filenames[0]);
+ g_strfreev (filenames);
+ return 1;
}
if (gdk_pixbuf_save (pixbuf, output, "png", &error, NULL) == FALSE) {
|