[maemo-commits] [maemo-commits] r15990 - projects/haf/branches/hildon-thumbnail/daemonize/daemon
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Wed Sep 3 16:09:11 EEST 2008
- Previous message: [maemo-commits] r15989 - projects/haf/branches/hildon-thumbnail/daemonize/daemon
- Next message: [maemo-commits] r15991 - projects/haf/branches/hildon-thumbnail/daemonize/daemon
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: pvanhoof
Date: 2008-09-03 16:09:10 +0300 (Wed, 03 Sep 2008)
New Revision: 15990
Modified:
projects/haf/branches/hildon-thumbnail/daemonize/daemon/thumbnailer.c
Log:
Codestyle
Modified: projects/haf/branches/hildon-thumbnail/daemonize/daemon/thumbnailer.c
===================================================================
--- projects/haf/branches/hildon-thumbnail/daemonize/daemon/thumbnailer.c 2008-09-03 13:08:06 UTC (rev 15989)
+++ projects/haf/branches/hildon-thumbnail/daemonize/daemon/thumbnailer.c 2008-09-03 13:09:10 UTC (rev 15990)
@@ -88,16 +88,19 @@
g_warning ("Error guessing mimetype for '%s': %s\n", path, error->message);
g_error_free (error);
*mime_type = g_strdup ("unknown/unknown");
- }
+ *has_thumb = FALSE;
+ } else {
- content_type = g_file_info_get_content_type (info);
- tp = g_file_info_get_attribute_byte_string (info,
- G_FILE_ATTRIBUTE_THUMBNAIL_PATH);
+ content_type = g_file_info_get_content_type (info);
+ tp = g_file_info_get_attribute_byte_string (info,
+ G_FILE_ATTRIBUTE_THUMBNAIL_PATH);
- *has_thumb = tp?g_file_test (tp, G_FILE_TEST_EXISTS):FALSE;
- *mime_type = content_type?g_strdup (content_type):g_strdup ("unknown/unknown");
+ *has_thumb = tp?g_file_test (tp, G_FILE_TEST_EXISTS):FALSE;
+ *mime_type = content_type?g_strdup (content_type):g_strdup ("unknown/unknown");
+ }
- g_object_unref (info);
+ if (info)
+ g_object_unref (info);
g_object_unref (file);
}
- Previous message: [maemo-commits] r15989 - projects/haf/branches/hildon-thumbnail/daemonize/daemon
- Next message: [maemo-commits] r15991 - projects/haf/branches/hildon-thumbnail/daemonize/daemon
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
