summaryrefslogtreecommitdiffstats
path: root/gst/goom/gstgoom.c
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@mad.scientist.com>2006-02-05 20:43:49 +0000
committerJan Schmidt <thaytan@mad.scientist.com>2006-02-05 20:43:49 +0000
commit07c1dceae064b547747a1513ca17225c1c1c3e0e (patch)
treeeedb8d00eade1f2fa88e9d4d481e953eca950b11 /gst/goom/gstgoom.c
parent4b5490014fb102cf65481d76222130d885eecebd (diff)
gst/goom/: Make goom reentrant by moving all important static variables into instance structures.
Original commit message from CVS: * gst/goom/filters.c: (zoomFilterNew), (calculatePXandPY), (setPixelRGB), (setPixelRGB_), (getPixelRGB), (getPixelRGB_), (zoomFilterSetResolution), (zoomFilterDestroy), (zoomFilterFastRGB), (pointFilter): * gst/goom/filters.h: * gst/goom/goom_core.c: (goom_init), (goom_set_resolution), (goom_update), (goom_close): * gst/goom/goom_core.h: * gst/goom/goom_tools.h: * gst/goom/graphic.c: * gst/goom/gstgoom.c: (gst_goom_class_init), (gst_goom_init), (gst_goom_dispose), (gst_goom_src_setcaps), (gst_goom_chain): * gst/goom/gstgoom.h: * gst/goom/lines.c: (goom_lines): * gst/goom/lines.h: Make goom reentrant by moving all important static variables into instance structures. (Fixes #329181)
Diffstat (limited to 'gst/goom/gstgoom.c')
-rw-r--r--gst/goom/gstgoom.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gst/goom/gstgoom.c b/gst/goom/gstgoom.c
index fcee47f6..d5bcb77f 100644
--- a/gst/goom/gstgoom.c
+++ b/gst/goom/gstgoom.c
@@ -182,7 +182,7 @@ gst_goom_init (GstGoom * goom)
goom->samples_consumed = 0;
goom->disposed = FALSE;
- goom_init (goom->width, goom->height);
+ goom_init (&(goom->goomdata), goom->width, goom->height);
}
static void
@@ -191,7 +191,7 @@ gst_goom_dispose (GObject * object)
GstGoom *goom = GST_GOOM (object);
if (!goom->disposed) {
- goom_close ();
+ goom_close (&(goom->goomdata));
goom->disposed = TRUE;
g_object_unref (goom->adapter);
@@ -233,7 +233,7 @@ gst_goom_src_setcaps (GstPad * pad, GstCaps * caps)
&goom->fps_d))
return FALSE;
- goom_set_resolution (goom->width, goom->height);
+ goom_set_resolution (&(goom->goomdata), goom->width, goom->height);
return TRUE;
}
@@ -382,7 +382,7 @@ gst_goom_chain (GstPad * pad, GstBuffer * bufin)
GST_BUFFER_DURATION (bufout) = frame_duration;
GST_BUFFER_SIZE (bufout) = goom->width * goom->height * 4;
- out_frame = (guchar *) goom_update (goom->datain);
+ out_frame = (guchar *) goom_update (&(goom->goomdata), goom->datain);
memcpy (GST_BUFFER_DATA (bufout), out_frame, GST_BUFFER_SIZE (bufout));
GST_DEBUG ("Pushing frame with time=%" G_GUINT64_FORMAT ", duration=%"