[tracker/tracker-0.10] tracker-extract, pdf: Port 'Small fix to the pdf extractor'



commit 8adeaa2023b2096ad695d5c44409c58ad87781a2
Author: Aleksander Morgado <aleksander lanedo com>
Date:   Tue Feb 22 10:26:43 2011 +0100

    tracker-extract,pdf: Port 'Small fix to the pdf extractor'
    
    Original commit ID: 4d13d69364c2da6560f00f9450d89b7f992bf091

 src/tracker-extract/tracker-extract-pdf.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-pdf.c b/src/tracker-extract/tracker-extract-pdf.c
index c9ee8f7..20931df 100644
--- a/src/tracker-extract/tracker-extract-pdf.c
+++ b/src/tracker-extract/tracker-extract-pdf.c
@@ -352,7 +352,7 @@ extract_pdf (const gchar          *uri,
 	              "subject", &pd.subject,
 	              "keywords", &pd.keywords,
 	              "creation-date", &creation_date,
-		      "metadata", &xml,
+	              "metadata", &xml,
 	              NULL);
 
 	if (creation_date > 0) {
@@ -362,7 +362,7 @@ extract_pdf (const gchar          *uri,
 	if (xml &&
 	    (xd = tracker_xmp_new (xml, strlen (xml), uri)) != NULL) {
 		/* The casts here are well understood and known */
-		md.title = (gchar *) tracker_coalesce_strip (3, pd.title, xd->title, xd->title2, xd->pdf_title);
+		md.title = (gchar *) tracker_coalesce_strip (4, pd.title, xd->title, xd->title2, xd->pdf_title);
 		md.subject = (gchar *) tracker_coalesce_strip (2, pd.subject, xd->subject);
 		md.date = (gchar *) tracker_coalesce_strip (3, pd.creation_date, xd->date, xd->time_original);
 		md.author = (gchar *) tracker_coalesce_strip (2, pd.author, xd->creator);



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