[grilo-plugins] youtube: Add initalise microseconds published value to 0



commit fb991cb13af37e77eb90d18687cec48abc7b64fc
Author: Michael Wood <michael g wood linux intel com>
Date:   Sat Mar 5 00:57:56 2011 +0000

    youtube: Add initalise microseconds published value to 0
    
    This should mean that the GTimeValue can be correctly parsed to iso8601
    using g_time_val_to_iso8601
    
    Fixes https://bugzilla.gnome.org/show_bug.cgi?id=643924

 src/media/youtube/grl-youtube.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/media/youtube/grl-youtube.c b/src/media/youtube/grl-youtube.c
index 29d4e62..1bc88a7 100644
--- a/src/media/youtube/grl-youtube.c
+++ b/src/media/youtube/grl-youtube.c
@@ -645,6 +645,7 @@ build_media_from_entry (GrlMedia *content,
 #ifdef GDATA_API_SUBJECT_TO_CHANGE
       gint64 published = gdata_entry_get_published (entry);
       date.tv_sec = (glong) published;
+      date.tv_usec = 0;
 #else
       gdata_entry_get_published (entry, &date);
 #endif



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