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),
(gst_xviddec_src_getcaps), (gst_xviddec_src_link),
(gst_xviddec_sink_link):
"Iain Holmes <iain@prettypeople.org>"
);
-static GstPadTemplate *srctemplate, *sinktemplate;
-
static GstStaticPadTemplate sink_factory =
GST_STATIC_PAD_TEMPLATE (
"sink",
static void
set_property (GObject *object,
- guint prop_id,
- const GValue *value,
- GParamSpec *pspec)
+ guint prop_id,
+ const GValue *value,
+ GParamSpec *pspec)
{
GstWavEnc *enc;
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;