mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
ladspa: code cleanup
Whitespace cleanup and unify codeing style.
This commit is contained in:
parent
78d116a64d
commit
38fd4f6148
2 changed files with 11 additions and 14 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue