ladspa: code cleanup

Whitespace cleanup and unify codeing style.
This commit is contained in:
Stefan Sauer 2016-05-10 12:24:03 -07:00
parent 78d116a64d
commit 38fd4f6148
2 changed files with 11 additions and 14 deletions

View file

@ -256,7 +256,7 @@ static GstFlowReturn
gst_ladspa_source_type_fill (GstBaseSrc * base, guint64 offset,
guint length, GstBuffer * buffer)
{
GstLADSPASource *ladspa;
GstLADSPASource *ladspa = GST_LADSPA_SOURCE (base);
GstClockTime next_time;
gint64 next_sample, next_byte;
gint bytes, samples;
@ -264,8 +264,6 @@ gst_ladspa_source_type_fill (GstBaseSrc * base, guint64 offset,
GstMapInfo map;
gint samplerate, bpf;
ladspa = GST_LADSPA_SOURCE (base);
/* example for tagging generated data */
if (!ladspa->tags_pushed) {
GstTagList *taglist;

View file

@ -726,15 +726,14 @@ gst_ladspa_init (GstLADSPA * ladspa, GstLADSPAClass * ladspa_class)
ladspa->activated = FALSE;
ladspa->rate = 0;
ladspa->ports.audio.in =
g_new0 (LADSPA_Data *, ladspa->klass->count.audio.in);
ladspa->ports.audio.in = g_new0 (LADSPA_Data *, ladspa_class->count.audio.in);
ladspa->ports.audio.out =
g_new0 (LADSPA_Data *, ladspa->klass->count.audio.out);
g_new0 (LADSPA_Data *, ladspa_class->count.audio.out);
ladspa->ports.control.in =
g_new0 (LADSPA_Data, ladspa->klass->count.control.in);
g_new0 (LADSPA_Data, ladspa_class->count.control.in);
ladspa->ports.control.out =
g_new0 (LADSPA_Data, ladspa->klass->count.control.out);
g_new0 (LADSPA_Data, ladspa_class->count.control.out);
}
void