mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
gst/gsttagsetter.c: gst_tag_list_merge() returns a new list, so it's not the best idea to ingore its return value. Ef...
Original commit message from CVS: Patch by: René Stadler <mail at renestadler dot de> * gst/gsttagsetter.c: (gst_tag_setter_merge_tags): gst_tag_list_merge() returns a new list, so it's not the best idea to ingore its return value. Effectively meant that tags could only be merged on a GstTagSetter once using _merge_tags(). Fixes #395554. Also add function guard to require a non-NULL taglist as input (has always been so due to gst_tag_list_copy(), just making it explicit).
This commit is contained in:
parent
297db8e249
commit
51b5a406ca
2 changed files with 13 additions and 1 deletions
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
|||
2007-01-11 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
Patch by: René Stadler <mail at renestadler dot de>
|
||||
|
||||
* gst/gsttagsetter.c: (gst_tag_setter_merge_tags):
|
||||
gst_tag_list_merge() returns a new list, so it's not the best idea
|
||||
to ingore its return value. Effectively meant that tags could only
|
||||
be merged on a GstTagSetter once using _merge_tags(). Fixes #395554.
|
||||
Also add function guard to require a non-NULL taglist as input (has
|
||||
always been so due to gst_tag_list_copy(), just making it explicit).
|
||||
|
||||
2007-01-11 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* docs/random/draft-missing-plugins.txt:
|
||||
|
|
|
@ -167,12 +167,13 @@ gst_tag_setter_merge_tags (GstTagSetter * setter, const GstTagList * list,
|
|||
|
||||
g_return_if_fail (GST_IS_TAG_SETTER (setter));
|
||||
g_return_if_fail (GST_TAG_MODE_IS_VALID (mode));
|
||||
g_return_if_fail (GST_IS_TAG_LIST (list));
|
||||
|
||||
data = gst_tag_setter_get_data (setter);
|
||||
if (!data->list) {
|
||||
data->list = gst_tag_list_copy (list);
|
||||
} else {
|
||||
gst_tag_list_merge (data->list, list, mode);
|
||||
gst_tag_list_insert (data->list, list, mode);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue