[Bug 643301] Adding a buffer to a buffer list iterates the list

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Feb 25 07:37:57 PST 2011


https://bugzilla.gnome.org/show_bug.cgi?id=643301
  GStreamer | gstreamer (core) | git

Jonas Holmberg <jonas.holmberg> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #181922|0                           |1
        is obsolete|                            |

--- Comment #2 from Jonas Holmberg <jonas.holmberg at axis.com> 2011-02-25 15:37:54 UTC ---
Created an attachment (id=181923)
 View: https://bugzilla.gnome.org/attachment.cgi?id=181923
 Review: https://bugzilla.gnome.org/review?bug=643301&attachment=181923

Use a GQueue instead of a GList

Using a GQueue to store the buffers makes it easier to add buffers to the end
of the list and this operation will now be much more efficient.

Adding an entire GList of buffers using gst_buffer_list_iterator_add_list()
will however have to iterate over the list being added to be able to update the
tail pointer in the GQueue.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list