exiftag: set value=1 if we found the token
authorStefan Kost <ensonic@users.sf.net>
Wed, 25 May 2011 10:59:57 +0000 (13:59 +0300)
committerStefan Kost <ensonic@users.sf.net>
Wed, 25 May 2011 10:59:57 +0000 (13:59 +0300)
Otherwise we never write the tag. This would also be consistent with the code in
deserialize_scene_type().

gst-libs/gst/tag/gstexiftag.c

index c97901c..9d941da 100644 (file)
@@ -2608,7 +2608,7 @@ serialize_scene_type (GstExifWriter * writer, const GstTagList * taglist,
   if (gst_tag_list_peek_string_index (taglist, GST_TAG_CAPTURING_SOURCE, 0,
           &str)) {
     if (strcmp (str, "dsc") == 0) {
-      value = 0;
+      value = 1;
     }
   }