plugins/elements/gstbufferstore.c
authorAndy Wingo <wingo@pobox.com>
Fri, 16 Dec 2005 14:44:49 +0000 (14:44 +0000)
committerAndy Wingo <wingo@pobox.com>
Fri, 16 Dec 2005 14:44:49 +0000 (14:44 +0000)
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.

ChangeLog
plugins/elements/gstbufferstore.c
tests/check/gst/gstobject.c

index 06c2d29..d86b360 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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:
index 492f64a..dea5419 100644 (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);
index 4afd5bd..dc5ec1b 100644 (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) {