[tracker/tracker-0.10] 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.10] libtracker-extract: Use strncmp for region of interest's type
- Date: Fri, 25 Nov 2011 19:30:35 +0000 (UTC)
commit 27c412744eda2ee055bb21445193a223b41699b3
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 d9c70bf..3f7796a 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]