[gstreamer-bugs] [Bug 335365] bad use of GList in gst-plugins-base

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Tue Mar 21 07:28:45 PST 2006


Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=335365
 GStreamer | gst-plugins-base | Ver: HEAD CVS





------- Comment #3 from paolo borelli  2006-03-21 15:28 UTC -------
Actually a quick look at gstoggparse reveals that things are even worse: for
each iteration g_slist_nth_data wolks the list a *third* time:

  for (i = 0; i < g_slist_length (parser->oggstreams); i++) {
    GstOggStream *stream = g_slist_nth_data (parser->oggstreams, i);

what about the good old:

  for (l = parser->oggstreams; l != NULL; l = l->next) {
    GstOggStream *stream = l->data


-- 
Configure bugmail: http://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