summaryrefslogtreecommitdiffstats
path: root/gst/goom
diff options
context:
space:
mode:
Diffstat (limited to 'gst/goom')
-rw-r--r--gst/goom/filters.c4
-rw-r--r--gst/goom/goom_core.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/gst/goom/filters.c b/gst/goom/filters.c
index 3014c352..9bb97c94 100644
--- a/gst/goom/filters.c
+++ b/gst/goom/filters.c
@@ -214,8 +214,8 @@ zoomVector (ZoomFilterFXWrapperData * data, float X, float Y)
/* Noise */
if (data->noisify) {
- vx += (((float) random ()) / ((float) RAND_MAX) - 0.5f) / 50.0f;
- vy += (((float) random ()) / ((float) RAND_MAX) - 0.5f) / 50.0f;
+ vx += (((float) rand ()) / ((float) RAND_MAX) - 0.5f) / 50.0f;
+ vy += (((float) rand ()) / ((float) RAND_MAX) - 0.5f) / 50.0f;
}
/* Hypercos */
diff --git a/gst/goom/goom_core.c b/gst/goom/goom_core.c
index 5bc64b6d..0e5410e0 100644
--- a/gst/goom/goom_core.c
+++ b/gst/goom/goom_core.c
@@ -38,11 +38,11 @@ static void
init_buffers (PluginInfo * goomInfo, int buffsize)
{
goomInfo->pixel = (guint32 *) malloc (buffsize * sizeof (guint32) + 128);
- bzero (goomInfo->pixel, buffsize * sizeof (guint32) + 128);
+ memset (goomInfo->pixel, 0, buffsize * sizeof (guint32) + 128);
goomInfo->back = (guint32 *) malloc (buffsize * sizeof (guint32) + 128);
- bzero (goomInfo->back, buffsize * sizeof (guint32) + 128);
+ memset (goomInfo->back, 0, buffsize * sizeof (guint32) + 128);
goomInfo->conv = (Pixel *) malloc (buffsize * sizeof (guint32) + 128);
- bzero (goomInfo->conv, buffsize * sizeof (guint32) + 128);
+ memset (goomInfo->conv, 0, buffsize * sizeof (guint32) + 128);
goomInfo->outputBuf = goomInfo->conv;