[gstreamer-bugs] [Bug 640211] oggmux: ensure serialnos are unique

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Jan 24 11:00:22 PST 2011


https://bugzilla.gnome.org/show_bug.cgi?id=640211
  GStreamer | gst-plugins-base | unspecified

Sebastian Dröge <slomo> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |slomo at circular-chaos.org

--- Comment #2 from Sebastian Dröge <slomo at circular-chaos.org> 2011-01-24 19:00:17 UTC ---
Instead of using rand() (only returns values between 0 and RAND_MAX) here it
would be better to use g_random_int() and you could simply have an
while(present) loop over the random numbers, it's extremely unlikely that this
never finishes.

-- 
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