diff options
author | Bastien Nocera <hadess@hadess.net> | 2014-02-18 12:06:37 +0000 |
---|---|---|
committer | Juan A. Suarez Romero <jasuarez@igalia.com> | 2014-02-18 12:06:37 +0000 |
commit | d03820f00eeff74649a506cb7c20721a92b16da8 (patch) | |
tree | 5439bb19d55b4a7212736b4af9cc81d425faa431 /libs | |
parent | d6643ecdc15f47b7dedd8c1816f40c1b3326a192 (diff) | |
download | grilo-d03820f00eeff74649a506cb7c20721a92b16da8.tar.gz |
pls: C89 compilation fixes
Move declaration to the top of the block.
https://bugzilla.gnome.org/show_bug.cgi?id=724540
Diffstat (limited to 'libs')
-rw-r--r-- | 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); |