+2007-08-14 Julien MOUTTE <julien@moutte.net>
+
+ * gst/gstindex.c: (gst_index_add_association): Fix index entry
+ generation from vargs. Fixes #466595.
+
2007-08-14 Wim Taymans <wim.taymans@gmail.com>
* gst/gstbin.c: (gst_bin_element_set_state):
array = g_array_new (FALSE, FALSE, sizeof (GstIndexAssociation));
+ {
+ GstIndexAssociation a;
+
+ a.format = format;
+ a.value = value;
+ n_assocs = 1;
+ g_array_append_val (array, a);
+ }
+
va_start (args, value);
- cur_format = format;
- n_assocs = 0;
- while (cur_format) {
+ while ((cur_format = va_arg (args, GstFormat))) {
GstIndexAssociation a;
+ a.format = cur_format;
+ a.value = va_arg (args, gint64);
n_assocs++;
- cur_format = va_arg (args, GstFormat);
- if (cur_format) {
- a.format = cur_format;
- a.value = va_arg (args, gint64);
-
- g_array_append_val (array, a);
- }
+ g_array_append_val (array, a);
}
+
va_end (args);
list = (GstIndexAssociation *) g_array_free (array, FALSE);