[rygel-gst-0-10-plugins] Mostly whitespace fixes.



commit 3584c98ffb4863d4871f626b1fde7948d7a8f1ad
Author: Krzesimir Nowak <krnowak openismus com>
Date:   Thu Feb 7 15:39:21 2013 +0100

    Mostly whitespace fixes.

 src/media-export/rygel-media-export-harvester.c    |    8 ++++----
 src/media-export/rygel-media-export-item-factory.c |   19 +++++++++----------
 2 files changed, 13 insertions(+), 14 deletions(-)
---
diff --git a/src/media-export/rygel-media-export-harvester.c b/src/media-export/rygel-media-export-harvester.c
index 2b8afc3..e63e97a 100644
--- a/src/media-export/rygel-media-export-harvester.c
+++ b/src/media-export/rygel-media-export-harvester.c
@@ -89,7 +89,7 @@ static void
 rygel_media_export_harvester_on_file_added (RygelMediaExportHarvester *self,
                                             GFile                     *file) {
   gchar *uri;
-  GError *error = NULL;
+  GError *error;
   RygelMediaExportMediaCache *cache;
   GFileInfo *info;
   RygelMediaExportHarvesterPrivate *priv;
@@ -102,6 +102,7 @@ rygel_media_export_harvester_on_file_added (RygelMediaExportHarvester *self,
   g_free (uri);
   cache = rygel_media_export_media_cache_get_default ();
   priv = self->priv;
+  error = NULL;
   info = g_file_query_info (file,
                             G_FILE_ATTRIBUTE_STANDARD_TYPE "," G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE,
                             G_FILE_QUERY_INFO_NONE,
@@ -212,7 +213,7 @@ static void
 rygel_media_export_harvester_on_changes_done (RygelMediaExportHarvester  *self,
                                               GFile                      *file,
                                               GError                    **error G_GNUC_UNUSED) {
-  Block3Data* data3;
+  Block3Data *data3;
   GeeAbstractMap *abstract_grace_timers;
   guint timeout;
   RygelMediaExportHarvesterPrivate *priv;
@@ -526,10 +527,9 @@ rygel_media_export_harvester_cancel (RygelMediaExportHarvester *self,
   priv = self->priv;
   abstract_tasks = GEE_ABSTRACT_MAP (priv->tasks);
   if (gee_abstract_map_has_key (abstract_tasks, file)) {
-    RygelMediaExportHarvestingTask *task;
     guint signal_id = 0U;
+    RygelMediaExportHarvestingTask *task = RYGEL_MEDIA_EXPORT_HARVESTING_TASK (gee_abstract_map_get (abstract_tasks, file));
 
-    task = RYGEL_MEDIA_EXPORT_HARVESTING_TASK (gee_abstract_map_get (abstract_tasks, file));
     g_signal_parse_name ("completed", RYGEL_TYPE_STATE_MACHINE, &signal_id, NULL, FALSE);
     g_signal_handlers_disconnect_matched (RYGEL_STATE_MACHINE (task),
                                           G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA,
diff --git a/src/media-export/rygel-media-export-item-factory.c b/src/media-export/rygel-media-export-item-factory.c
index 64c7b7f..d432096 100644
--- a/src/media-export/rygel-media-export-item-factory.c
+++ b/src/media-export/rygel-media-export-item-factory.c
@@ -318,14 +318,14 @@ void rygel_media_export_item_factory_fill_media_item (RygelMediaItem *item, GFil
 
   GDate* date = NULL;
   if (tags) {
-                if (gst_tag_list_get_date (tags, GST_TAG_DATE, &date)) {
-                  gint datestr_length = 30;
-                  gchar *datestr = g_new0 (gchar, datestr_length);
-                  g_date_strftime (datestr, datestr_length, "%F", date);
-
-                  rygel_media_item_set_date (item, datestr);
-                        g_free (datestr);
-                }
+    if (gst_tag_list_get_date (tags, GST_TAG_DATE, &date)) {
+      gint datestr_length = 30;
+      gchar *datestr = g_new0 (gchar, datestr_length);
+      g_date_strftime (datestr, datestr_length, "%F", date);
+
+      rygel_media_item_set_date (item, datestr);
+      g_free (datestr);
+    }
   }
 
   // use mtime if no time tag was available
@@ -344,8 +344,7 @@ void rygel_media_export_item_factory_fill_media_item (RygelMediaItem *item, GFil
   }
 
 
-
-        rygel_media_item_set_size (item,
+  rygel_media_item_set_size (item,
           (gint64)  g_file_info_get_size (file_info));
   rygel_media_object_set_modified (RYGEL_MEDIA_OBJECT (item), (guint64) mtime);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]