summaryrefslogtreecommitdiff
path: root/ext/libvisual
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2012-08-13 11:55:58 +0200
committerWim Taymans <wim.taymans@collabora.co.uk>2012-08-13 11:55:58 +0200
commit19695f76d0963b326a0568f3fbc7f12f185b8b3b (patch)
tree8c4732352fffab03a0c2a04197f756121a85a2ab /ext/libvisual
parentc4d97601eaf3e7454c919f5097751f1639d52cd4 (diff)
downloadgstreamer-plugins-base-19695f76d0963b326a0568f3fbc7f12f185b8b3b.tar.gz
visualizer: small cleanup
Diffstat (limited to 'ext/libvisual')
-rw-r--r--ext/libvisual/gstaudiovisualizer.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/ext/libvisual/gstaudiovisualizer.c b/ext/libvisual/gstaudiovisualizer.c
index fcea6ab0a..e5c188fd9 100644
--- a/ext/libvisual/gstaudiovisualizer.c
+++ b/ext/libvisual/gstaudiovisualizer.c
@@ -783,15 +783,11 @@ gst_audio_visualizer_chain (GstPad * pad, GstObject * parent,
guint64 dist, ts;
guint avail, sbpf;
gpointer adata;
- gboolean (*render) (GstAudioVisualizer * scope, GstBuffer * audio,
- GstBuffer * video);
gint bps, channels, rate;
scope = GST_AUDIO_VISUALIZER (parent);
klass = GST_AUDIO_VISUALIZER_CLASS (G_OBJECT_GET_CLASS (scope));
- render = klass->render;
-
GST_LOG_OBJECT (scope, "chainfunc called");
/* resync on DISCONT */
@@ -893,8 +889,8 @@ gst_audio_visualizer_chain (GstPad * pad, GstObject * parent,
sbpf, NULL, NULL));
/* call class->render() vmethod */
- if (render) {
- if (!render (scope, inbuf, outbuf)) {
+ if (klass->render) {
+ if (!klass->render (scope, inbuf, outbuf)) {
ret = GST_FLOW_ERROR;
} else {
/* run various post processing (shading and geometri transformation */