[tracker] tracker-extract: Don't report < 0 nfo:width for images with GStreamer discoverer



commit ae4741e0a96bd260e6f88c07468d09ef46056565
Author: Martyn Russell <martyn lanedo com>
Date:   Tue Mar 18 13:32:50 2014 +0000

    tracker-extract: Don't report < 0 nfo:width for images with GStreamer discoverer

 src/tracker-extract/tracker-extract-gstreamer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-gstreamer.c b/src/tracker-extract/tracker-extract-gstreamer.c
index 6a7a909..72e5b4e 100644
--- a/src/tracker-extract/tracker-extract-gstreamer.c
+++ b/src/tracker-extract/tracker-extract-gstreamer.c
@@ -1320,7 +1320,7 @@ common_extract_stream_metadata (MetadataExtractor    *extractor,
            extractor->mime == EXTRACT_MIME_SVG ||
            extractor->mime == EXTRACT_MIME_VIDEO) {
 
-               if (extractor->width) {
+               if (extractor->width >= 0) {
                        tracker_sparql_builder_predicate (metadata, "nfo:width");
                        tracker_sparql_builder_object_int64 (metadata, extractor->width);
                }


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