gst/gstvalue.c: Limit check for whether a list contains a value already to a normal list only (since this is allowed ...

Original commit message from CVS:
* gst/gstvalue.c: (gst_value_list_append_value):
Limit check for whether a list contains a value already to
a normal list only (since this is allowed for a fixed-list).
Should fix testsuite.
This commit is contained in:
Ronald S. Bultje 2005-06-03 09:48:35 +00:00
parent 777061b2e9
commit 6dc13c13e1
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,10 @@
2005-06-03 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/gstvalue.c: (gst_value_list_append_value):
Limit check for whether a list contains a value already to
a normal list only (since this is allowed for a fixed-list).
Should fix testsuite.
2005-06-03 Andreas Schwab <schwab@suse.de>
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>

View file

@ -243,7 +243,7 @@ gst_value_list_append_value (GValue * value, const GValue * append_value)
g_return_if_fail (GST_VALUE_HOLDS_LIST (value)
|| GST_VALUE_HOLDS_FIXED_LIST (value));
#ifndef G_DISABLE_CHECKS
G_STMT_START {
if (GST_VALUE_HOLDS_LIST (value)) {
guint i;
for (i = 0; i < gst_value_list_get_size (value); i++) {
@ -259,7 +259,6 @@ gst_value_list_append_value (GValue * value, const GValue * append_value)
}
}
}
G_STMT_END;
#endif
gst_value_init_and_copy (&val, append_value);