tag: xmp: Fix off by one
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Tue, 23 Mar 2010 12:48:19 +0000 (09:48 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Wed, 24 Mar 2010 18:34:02 +0000 (15:34 -0300)
Avoid ignoring single char tags, like exif:GPSAltitudeRef

Fixes #613690

gst-libs/gst/tag/gstxmptag.c

index 5ede287..064480d 100644 (file)
@@ -618,7 +618,7 @@ gst_tag_list_from_xmp_buffer (const GstBuffer * buffer)
       *pp = '\0';
       /* create node */
       /* {TXT, ns, (ne-ns)-1} */
-      if (ns[0] != '\n' && &ns[1] < ne) {
+      if (ns[0] != '\n' && &ns[1] <= ne) {
         /* only log non-newline nodes, we still have to parse them */
         GST_INFO ("txt: %s", part);
         if (last_tag) {