[gst-cvs] gst-plugins-base: tag: xmp: Init char variable for gps coordinates

Thiago Sousa Santos thiagoss at kemper.freedesktop.org
Mon Jun 14 11:47:50 PDT 2010


Module: gst-plugins-base
Branch: master
Commit: 4219a5ae5c7ee8cab7db9bcf53207d46173f4b63
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=4219a5ae5c7ee8cab7db9bcf53207d46173f4b63

Author: Thiago Santos <thiago.sousa.santos at collabora.co.uk>
Date:   Mon Jun 14 15:05:16 2010 -0300

tag: xmp: Init char variable for gps coordinates

Initialize char variable for gps coordinates deserialization to 0
to identify when it couldn't be parsed/found and error out.

Fixes #621509

---

 gst-libs/gst/tag/gstxmptag.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gst-libs/gst/tag/gstxmptag.c b/gst-libs/gst/tag/gstxmptag.c
index 97867a7..9513c80 100644
--- a/gst-libs/gst/tag/gstxmptag.c
+++ b/gst-libs/gst/tag/gstxmptag.c
@@ -253,7 +253,7 @@ deserialize_exif_gps_coordinate (GstTagList * taglist, const gchar * gst_tag,
   gdouble value = 0;
   gint d = 0, m = 0, s = 0;
   gdouble m2 = 0;
-  gchar c;
+  gchar c = 0;
   const gchar *current;
 
   /* get the degrees */





More information about the Gstreamer-commits mailing list