plugins/elements/gstbufferstore.c

Original commit message from CVS:
2005-12-16  Andy Wingo  <wingo@pobox.com>

* plugins/elements/gstbufferstore.c
(gst_buffer_store_cleared_func): Pay attention to g_list_append
return value.

* tests/check/gst/gstobject.c
(test_fake_object_name_threaded_unique): Pay attention to
g_list_sort return value.
This commit is contained in:
Andy Wingo 2005-12-16 14:44:49 +00:00
parent 77b1a17fc9
commit e70e7f7d95
3 changed files with 13 additions and 2 deletions

View file

@ -1,3 +1,13 @@
2005-12-16 Andy Wingo <wingo@pobox.com>
* plugins/elements/gstbufferstore.c
(gst_buffer_store_cleared_func): Pay attention to g_list_append
return value.
* tests/check/gst/gstobject.c
(test_fake_object_name_threaded_unique): Pay attention to
g_list_sort return value.
2005-12-16 Tim-Philipp Müller <tim at centricular dot net>
* tools/gst-feedback-m.m:

View file

@ -233,7 +233,7 @@ gst_buffer_store_add_buffer_func (GstBufferStore * store, GstBuffer * buffer)
"adding buffer %p with offset %" G_GINT64_FORMAT " and size %u",
buffer, GST_BUFFER_OFFSET (buffer), GST_BUFFER_SIZE (buffer));
if (current_list) {
g_list_append (current_list, buffer);
current_list = g_list_append (current_list, buffer);
} else {
g_assert (store->buffers == NULL);
store->buffers = g_list_prepend (NULL, buffer);

View file

@ -311,7 +311,8 @@ GST_START_TEST (test_fake_object_name_threaded_unique)
/* sort GList based on object name */
/* FIXME: sort and test */
g_list_sort (object_list, (GCompareFunc) gst_object_name_compare);
object_list =
g_list_sort (object_list, (GCompareFunc) gst_object_name_compare);
name1 = gst_object_get_name (GST_OBJECT (object_list->data));
for (l = object_list->next; l->next; l = l->next) {