gst/wavenc/gstwavenc.c: Fix indenting, fix pad creation.

Original commit message from CVS:
2004-01-04  Ronald Bultje  <rbultje@ronald.bitfreak.net>

* gst/wavenc/gstwavenc.c: (set_property), (gst_wavenc_init):
Fix indenting, fix pad creation.
This commit is contained in:
Ronald S. Bultje 2004-01-04 12:14:37 +00:00
parent cd628a8fde
commit 0a8cb9cef9
2 changed files with 14 additions and 7 deletions

View file

@ -1,3 +1,8 @@
2004-01-04 Ronald Bultje <rbultje@ronald.bitfreak.net>
* gst/wavenc/gstwavenc.c: (set_property), (gst_wavenc_init):
Fix indenting, fix pad creation.
2004-01-04 Ronald Bultje <rbultje@ronald.bitfreak.net>
* ext/xvid/gstxviddec.c: (gst_xviddec_init),

View file

@ -76,8 +76,6 @@ static GstElementDetails gst_wavenc_details = GST_ELEMENT_DETAILS (
"Iain Holmes <iain@prettypeople.org>"
);
static GstPadTemplate *srctemplate, *sinktemplate;
static GstStaticPadTemplate sink_factory =
GST_STATIC_PAD_TEMPLATE (
"sink",
@ -154,9 +152,9 @@ gst_wavenc_change_state (GstElement *element)
static void
set_property (GObject *object,
guint prop_id,
const GValue *value,
GParamSpec *pspec)
guint prop_id,
const GValue *value,
GParamSpec *pspec)
{
GstWavEnc *enc;
@ -283,12 +281,16 @@ gst_wavenc_stop_file (GstWavEnc *wavenc)
static void
gst_wavenc_init (GstWavEnc *wavenc)
{
wavenc->sinkpad = gst_pad_new_from_template (sinktemplate, "sink");
GstElementClass *klass = GST_ELEMENT_GET_CLASS (wavenc);
wavenc->sinkpad = gst_pad_new_from_template (
gst_element_class_get_pad_template (klass, "sink"), "sink");
gst_element_add_pad (GST_ELEMENT (wavenc), wavenc->sinkpad);
gst_pad_set_chain_function (wavenc->sinkpad, gst_wavenc_chain);
gst_pad_set_link_function (wavenc->sinkpad, gst_wavenc_sinkconnect);
wavenc->srcpad = gst_pad_new_from_template (srctemplate, "src");
wavenc->srcpad = gst_pad_new_from_template (
gst_element_class_get_pad_template (klass, "src"), "src");
gst_element_add_pad (GST_ELEMENT (wavenc), wavenc->srcpad);
wavenc->setup = FALSE;