exiftag: set value=1 if we found the token

Otherwise we never write the tag. This would also be consistent with the code in
deserialize_scene_type().
This commit is contained in:
Stefan Kost 2011-05-25 13:59:57 +03:00
parent b229b8f3f9
commit 8ffe4445f6

View 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, if (gst_tag_list_peek_string_index (taglist, GST_TAG_CAPTURING_SOURCE, 0,
&str)) { &str)) {
if (strcmp (str, "dsc") == 0) { if (strcmp (str, "dsc") == 0) {
value = 0; value = 1;
} }
} }