visualizer: small cleanup
This commit is contained in:
parent
c4d97601ea
commit
19695f76d0
@ -783,15 +783,11 @@ gst_audio_visualizer_chain (GstPad * pad, GstObject * parent,
|
|||||||
guint64 dist, ts;
|
guint64 dist, ts;
|
||||||
guint avail, sbpf;
|
guint avail, sbpf;
|
||||||
gpointer adata;
|
gpointer adata;
|
||||||
gboolean (*render) (GstAudioVisualizer * scope, GstBuffer * audio,
|
|
||||||
GstBuffer * video);
|
|
||||||
gint bps, channels, rate;
|
gint bps, channels, rate;
|
||||||
|
|
||||||
scope = GST_AUDIO_VISUALIZER (parent);
|
scope = GST_AUDIO_VISUALIZER (parent);
|
||||||
klass = GST_AUDIO_VISUALIZER_CLASS (G_OBJECT_GET_CLASS (scope));
|
klass = GST_AUDIO_VISUALIZER_CLASS (G_OBJECT_GET_CLASS (scope));
|
||||||
|
|
||||||
render = klass->render;
|
|
||||||
|
|
||||||
GST_LOG_OBJECT (scope, "chainfunc called");
|
GST_LOG_OBJECT (scope, "chainfunc called");
|
||||||
|
|
||||||
/* resync on DISCONT */
|
/* resync on DISCONT */
|
||||||
@ -893,8 +889,8 @@ gst_audio_visualizer_chain (GstPad * pad, GstObject * parent,
|
|||||||
sbpf, NULL, NULL));
|
sbpf, NULL, NULL));
|
||||||
|
|
||||||
/* call class->render() vmethod */
|
/* call class->render() vmethod */
|
||||||
if (render) {
|
if (klass->render) {
|
||||||
if (!render (scope, inbuf, outbuf)) {
|
if (!klass->render (scope, inbuf, outbuf)) {
|
||||||
ret = GST_FLOW_ERROR;
|
ret = GST_FLOW_ERROR;
|
||||||
} else {
|
} else {
|
||||||
/* run various post processing (shading and geometri transformation */
|
/* run various post processing (shading and geometri transformation */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user