[tracker/tracker-0.12] libtracker-extract: Use strncmp for region of interest's type
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.12] libtracker-extract: Use strncmp for region of interest's type
- Date: Fri, 25 Nov 2011 15:47:32 +0000 (UTC)
commit 01002a8dc3389b9808f9d3f152bdaf5e9a552b0d
Author: Philip Van Hoof <philip codeminded be>
Date: Fri Nov 25 11:29:05 2011 +0100
libtracker-extract: Use strncmp for region of interest's type
Fixes NB#292744.
src/libtracker-extract/tracker-xmp.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/libtracker-extract/tracker-xmp.c b/src/libtracker-extract/tracker-xmp.c
index f91f8f0..8729af0 100644
--- a/src/libtracker-extract/tracker-xmp.c
+++ b/src/libtracker-extract/tracker-xmp.c
@@ -851,13 +851,13 @@ fix_region_type (const gchar *region_type)
return "nfo:region-content-undefined";
}
- if (g_ascii_strcasecmp (region_type, "Face")) {
+ if (g_ascii_strncasecmp (region_type, "Face", 4) == 0) {
return "nfo:roi-content-face";
- } else if (g_ascii_strcasecmp (region_type, "Pet")) {
+ } else if (g_ascii_strncasecmp (region_type, "Pet", 3) == 0) {
return "nfo:roi-content-pet";
- } else if (g_ascii_strcasecmp (region_type, "Focus")) {
+ } else if (g_ascii_strncasecmp (region_type, "Focus", 5) == 0) {
return "nfo:roi-content-focus";
- } else if (g_ascii_strcasecmp (region_type, "BarCode")) {
+ } else if (g_ascii_strncasecmp (region_type, "BarCode", 7) == 0) {
return "nfo:roi-content-barcode";
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]