[grilo] pls: C89 compilation fixes



commit d03820f00eeff74649a506cb7c20721a92b16da8
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Feb 18 12:06:37 2014 +0000

    pls: C89 compilation fixes
    
    Move declaration to the top of the block.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=724540

 libs/pls/grl-pls.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/libs/pls/grl-pls.c b/libs/pls/grl-pls.c
index 2e65c04..cfd61a6 100644
--- a/libs/pls/grl-pls.c
+++ b/libs/pls/grl-pls.c
@@ -1273,6 +1273,9 @@ grl_pls_file_to_media (GrlMedia            *content,
     g_clear_error (&error);
     g_free (str);
   } else {
+    GTimeVal time;
+    GDateTime *date_time;
+
     mime = g_file_info_get_content_type (info);
 
     if (!media) {
@@ -1312,8 +1315,6 @@ grl_pls_file_to_media (GrlMedia            *content,
     g_free (str);
 
     /* Date */
-    GTimeVal time;
-    GDateTime *date_time;
     g_file_info_get_modification_time (info, &time);
     date_time = g_date_time_new_from_timeval_utc (&time);
     grl_media_set_modification_date (media, date_time);


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