gst/gsttaglist.override: Return tag value if present more than once (instead of exactly once).

Original commit message from CVS:
* gst/gsttaglist.override: (tag_foreach_func_list):
Return tag value if present more than once (instead of exactly once).
Fixes #337876
This commit is contained in:
Edward Hervey 2006-04-10 14:47:19 +00:00
parent b07c954fb9
commit e7c477c793
3 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2006-04-10 Edward Hervey <edward@fluendo.com>
* gst/gsttaglist.override: (tag_foreach_func_list):
Return tag value if present more than once (instead of exactly once).
Fixes #337876
2006-04-10 Edward Hervey <edward@fluendo.com>
* codegen/argtypes.py:

2
common

@ -1 +1 @@
Subproject commit 1783855e983a5294434673694e8a57e44980b6f1
Subproject commit a6710e67fd82147e32a18f1b63177583faffd498

View file

@ -45,7 +45,7 @@ tag_foreach_func_list (const GstTagList *list,
count = gst_tag_list_get_tag_size(GST_TAG_LIST(list), tag);
if (count == 0)
PyErr_SetString(PyExc_KeyError, tag);
else if (count == 1)
else if (count > 0)
PyList_Append(py_list, PyString_FromString(tag));
}