mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +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;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* GStreamer LADSPA utils
|
||||
/* GStreamer LADSPA utils
|
||||
* Copyright (C) 1999 Erik Walthinsen <omega@cse.ogi.edu>
|
||||
* 2001 Steve Baker <stevebaker_org@yahoo.co.uk>
|
||||
* 2003 Andy Wingo <wingo at pobox.com>
|
||||
|
@ -21,7 +21,7 @@
|
|||
* Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
/*
|
||||
/*
|
||||
* This module is smartly shared between the source, transform and
|
||||
* sink elements. Handling any specific LADSPA <-> gstreamer interaction.
|
||||
*
|
||||
|
@ -65,7 +65,7 @@
|
|||
GST_DEBUG_CATEGORY_EXTERN (ladspa_debug);
|
||||
#define GST_CAT_DEFAULT ladspa_debug
|
||||
|
||||
/*
|
||||
/*
|
||||
* Interleaved buffer: (c1c2c1c2...)
|
||||
* De-interleaved buffer: (c1c1...c2c2...)
|
||||
*/
|
||||
|
@ -81,7 +81,7 @@ gst_ladspa_ladspa_deinterleave_data (GstLADSPA * ladspa, LADSPA_Data * outdata,
|
|||
outdata[i * samples + j] = ((LADSPA_Data *) indata)[j * audio_in + i];
|
||||
}
|
||||
|
||||
/*
|
||||
/*
|
||||
* Interleaved buffer: (c1c2c1c2...)
|
||||
* De-interleaved buffer: (c1c1...c2c2...)
|
||||
*/
|
||||
|
@ -573,7 +573,7 @@ gst_ladspa_element_class_set_metadata (GstLADSPAClass * ladspa_class,
|
|||
GST_DEBUG ("LADSPA uri (id=%lu) : %s", desc->UniqueID, uri);
|
||||
|
||||
/* we can take this directly from 'desc', keep this example for future
|
||||
attributes.
|
||||
attributes.
|
||||
|
||||
if ((str = lrdf_get_setting_metadata (uri, "title"))) {
|
||||
GST_DEBUG ("LADSPA title : %s", str);
|
||||
|
@ -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
|
||||
|
@ -836,7 +835,7 @@ gst_ladspa_class_finalize (GstLADSPAClass * ladspa_class)
|
|||
ladspa_class->plugin = NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
/*
|
||||
* Create the type & register the element.
|
||||
*/
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue