tag: xmp: Fix off by one

Avoid ignoring single char tags, like exif:GPSAltitudeRef

Fixes #613690
This commit is contained in:
Thiago Santos 2010-03-23 09:48:19 -03:00
parent 7ebbfbd3a5
commit e207463582

View 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) {