mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
ext/alsa/gstalsasrc.c: Remove bogus "src" request pad.
Original commit message from CVS: * 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.
This commit is contained in:
parent
2465df5cdb
commit
532c5eea39
2 changed files with 9 additions and 12 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
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>
|
2004-01-03 Ronald Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
||||||
* sys/ximage/Makefile.am:
|
* sys/ximage/Makefile.am:
|
||||||
|
|
|
@ -37,7 +37,6 @@ static GstElementDetails gst_alsa_src_details = GST_ELEMENT_DETAILS (
|
||||||
);
|
);
|
||||||
|
|
||||||
static GstPadTemplate * gst_alsa_src_pad_factory (void);
|
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_base_init (gpointer g_class);
|
||||||
static void gst_alsa_src_class_init (gpointer g_class,
|
static void gst_alsa_src_class_init (gpointer g_class,
|
||||||
gpointer class_data);
|
gpointer class_data);
|
||||||
|
@ -65,17 +64,7 @@ gst_alsa_src_pad_factory (void)
|
||||||
|
|
||||||
return template;
|
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
|
GType
|
||||||
gst_alsa_src_get_type (void)
|
gst_alsa_src_get_type (void)
|
||||||
{
|
{
|
||||||
|
@ -105,7 +94,6 @@ gst_alsa_src_base_init (gpointer g_class)
|
||||||
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
|
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_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);
|
gst_element_class_set_details (element_class, &gst_alsa_src_details);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue