[tracker/tracker-0.10] tracker-extract-gstreamer: Fix compile warning



commit 78412c0f6cac6342223d459c822e9b9efde24da1
Author: Sam Thursfield <samthursfield codethink co uk>
Date:   Fri Aug 12 19:09:02 2011 +0100

    tracker-extract-gstreamer: Fix compile warning
    
    https://bugzilla.gnome.org/show_bug.cgi?id=656419

 src/tracker-extract/tracker-extract-gstreamer.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-gstreamer.c b/src/tracker-extract/tracker-extract-gstreamer.c
index e09d2c9..4a8b39f 100644
--- a/src/tracker-extract/tracker-extract-gstreamer.c
+++ b/src/tracker-extract/tracker-extract-gstreamer.c
@@ -310,15 +310,13 @@ add_date_time_gst_tag (TrackerSparqlBuilder  *metadata,
 
 		gst_date_time_unref (date_time);
 	} else if (gst_tag_list_get_date (tag_list, tag_date, &date)) {
-		gboolean ret;
+		gboolean ret = FALSE;
 
 		if (date && g_date_valid (date)) {
 			if (date->julian)
 				ret = g_date_valid_julian (date->julian_days);
 			if (date->dmy)
 				ret = g_date_valid_dmy (date->day, date->month, date->year);
-		} else {
-			ret = FALSE;
 		}
 
 		if (ret) {



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