[tracker] tracker-extract-gupnp-dlna: Initialise all variables in MetadataExtractor struct



commit c29f6fe415fdf3d122ea6fc2f1a2aa5f8656a615
Author: Martyn Russell <martyn lanedo com>
Date:   Fri Aug 19 13:10:30 2011 +0100

    tracker-extract-gupnp-dlna: Initialise all variables in MetadataExtractor struct

 src/tracker-extract/tracker-extract-gupnp-dlna.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-gupnp-dlna.c b/src/tracker-extract/tracker-extract-gupnp-dlna.c
index 65fcbe3..b7ef72f 100644
--- a/src/tracker-extract/tracker-extract-gupnp-dlna.c
+++ b/src/tracker-extract/tracker-extract-gupnp-dlna.c
@@ -700,21 +700,23 @@ extract_gupnp_dlna (const gchar          *uri,
 
 	gst_init (NULL, NULL);
 
+	extractor.content = CONTENT_NONE;
+
 	extractor.has_image = FALSE;
 	extractor.has_video = FALSE;
 	extractor.has_audio = FALSE;
 
+	extractor.dnla_profile = NULL;
+
 	extractor.tags = NULL;
 
 	extractor.width = 0;
 	extractor.height = 0;
 	extractor.frame_rate = 0;
 	extractor.aspect_ratio = 0;
-
 	extractor.sample_rate = 0;
 	extractor.bitrate = 0;
 	extractor.channels = 0;
-
 	extractor.duration = 0;
 
 	extractor.is_content_encrypted = FALSE;



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