audiotestsrc: each element gets its own instance of GRand, if needed
authorLeo Singer <leo.singer@ligo.org>
Fri, 18 Feb 2011 21:27:23 +0000 (13:27 -0800)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sat, 19 Feb 2011 07:37:46 +0000 (08:37 +0100)
commit82199c581506a6ef3f21144c6a7f48aea0f22240
treecf222e53c4cd726ff507acbe99f2b4794e17d9f1
parent0e3c32ac72c2dd62de05c815ce90e38b4a484b5f
audiotestsrc: each element gets its own instance of GRand, if needed

As a result, pipelines that contain multiple instances of audiotestsrc
with the 'wave' property set to 'white-noise', 'pink-noise', or
'gaussian-noise' will run much faster, since they won't be competing
for access to the global, lock-protected instance of GRand.

Fixes bug #642720.
gst/audiotestsrc/gstaudiotestsrc.c
gst/audiotestsrc/gstaudiotestsrc.h