+2004-01-02 David Schleef <ds@schleef.org>
+
+ * ext/alsa/gstalsasrc.c: (gst_alsa_src_pad_factory),
+ (gst_alsa_src_base_init): Remove bogus "src" request pad.
+ * gst/mpegstream/gstmpegparse.c: (gst_mpeg_parse_base_init),
+ (gst_mpeg_parse_class_init): Move pad template registration
+ to class_init, since the derived class (mpegdemux) doesn't
+ want them.
+
2004-01-03 Ronald Bultje <rbultje@ronald.bitfreak.net>
* sys/ximage/Makefile.am:
);
static GstPadTemplate * gst_alsa_src_pad_factory (void);
-static GstPadTemplate * gst_alsa_src_request_pad_factory (void);
static void gst_alsa_src_base_init (gpointer g_class);
static void gst_alsa_src_class_init (gpointer g_class,
gpointer class_data);
return template;
}
-static GstPadTemplate *
-gst_alsa_src_request_pad_factory (void)
-{
- static GstPadTemplate *template = NULL;
-
- if (!template)
- template = gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS,
- gst_alsa_caps (SND_PCM_FORMAT_UNKNOWN, -1, 1));
- return template;
-}
GType
gst_alsa_src_get_type (void)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_alsa_src_pad_factory ());
- gst_element_class_add_pad_template (element_class, gst_alsa_src_request_pad_factory ());
gst_element_class_set_details (element_class, &gst_alsa_src_details);
}