mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
And again one more
Original commit message from CVS: And again one more
This commit is contained in:
parent
9d888e2d00
commit
aa7a4be370
1 changed files with 31 additions and 27 deletions
|
@ -32,14 +32,11 @@
|
||||||
#define SEQ_END_CODE 0x000001b7
|
#define SEQ_END_CODE 0x000001b7
|
||||||
|
|
||||||
/* elementfactory information */
|
/* elementfactory information */
|
||||||
static GstElementDetails mp1videoparse_details = {
|
static GstElementDetails mpeg1videoparse_details = {
|
||||||
"MPEG 1 Video Parser",
|
"MPEG 1 Video Parser",
|
||||||
"Codec/Parser",
|
"Codec/Parser",
|
||||||
"LGPL",
|
"Parses and frames MPEG 1 video streams, provides seek"
|
||||||
"Parses and frames MPEG 1 video streams, provides seek",
|
"Wim Taymans <wim.taymans@chello.be>"
|
||||||
VERSION,
|
|
||||||
"Wim Taymans <wim.taymans@chello.be>",
|
|
||||||
"(C) 2000",
|
|
||||||
};
|
};
|
||||||
|
|
||||||
GST_PAD_TEMPLATE_FACTORY (src_factory,
|
GST_PAD_TEMPLATE_FACTORY (src_factory,
|
||||||
|
@ -83,6 +80,7 @@ enum {
|
||||||
};
|
};
|
||||||
|
|
||||||
static void gst_mp1videoparse_class_init (Mp1VideoParseClass *klass);
|
static void gst_mp1videoparse_class_init (Mp1VideoParseClass *klass);
|
||||||
|
static void gst_mp1videoparse_base_init (Mp1VideoParseClass *klass);
|
||||||
static void gst_mp1videoparse_init (Mp1VideoParse *mp1videoparse);
|
static void gst_mp1videoparse_init (Mp1VideoParse *mp1videoparse);
|
||||||
|
|
||||||
static void gst_mp1videoparse_chain (GstPad *pad, GstData *_data);
|
static void gst_mp1videoparse_chain (GstPad *pad, GstData *_data);
|
||||||
|
@ -101,7 +99,8 @@ mp1videoparse_get_type (void)
|
||||||
|
|
||||||
if (!mp1videoparse_type) {
|
if (!mp1videoparse_type) {
|
||||||
static const GTypeInfo mp1videoparse_info = {
|
static const GTypeInfo mp1videoparse_info = {
|
||||||
sizeof(Mp1VideoParseClass), NULL,
|
sizeof(Mp1VideoParseClass),
|
||||||
|
(GBaseInitFunc)gst_mp1videoparse_base_init,
|
||||||
NULL,
|
NULL,
|
||||||
(GClassInitFunc)gst_mp1videoparse_class_init,
|
(GClassInitFunc)gst_mp1videoparse_class_init,
|
||||||
NULL,
|
NULL,
|
||||||
|
@ -115,6 +114,18 @@ mp1videoparse_get_type (void)
|
||||||
return mp1videoparse_type;
|
return mp1videoparse_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
gst_mp1videoparse_base_init (Mp1VideoParseClass *klass)
|
||||||
|
{
|
||||||
|
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
|
||||||
|
|
||||||
|
gst_element_class_add_pad_template (element_class,
|
||||||
|
GST_PAD_TEMPLATE_GET (src_factory));
|
||||||
|
gst_element_class_add_pad_template (element_class,
|
||||||
|
GST_PAD_TEMPLATE_GET (sink_factory));
|
||||||
|
gst_element_class_set_details (element_class, &mpeg1videoparse_details);
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_mp1videoparse_class_init (Mp1VideoParseClass *klass)
|
gst_mp1videoparse_class_init (Mp1VideoParseClass *klass)
|
||||||
{
|
{
|
||||||
|
@ -481,28 +492,21 @@ gst_mp1videoparse_change_state (GstElement *element)
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
plugin_init (GModule *module, GstPlugin *plugin)
|
plugin_init (GstPlugin *plugin)
|
||||||
{
|
{
|
||||||
GstElementFactory *factory;
|
return gst_element_register (plugin, "mpeg1videoparse",
|
||||||
|
GST_RANK_NONE, GST_TYPE_MP1VIDEOPARSE);
|
||||||
/* create an elementfactory for the mp1videoparse element */
|
|
||||||
factory = gst_element_factory_new("mp1videoparse",GST_TYPE_MP1VIDEOPARSE,
|
|
||||||
&mp1videoparse_details);
|
|
||||||
g_return_val_if_fail(factory != NULL, FALSE);
|
|
||||||
|
|
||||||
gst_element_factory_add_pad_template (factory,
|
|
||||||
GST_PAD_TEMPLATE_GET (src_factory));
|
|
||||||
gst_element_factory_add_pad_template (factory,
|
|
||||||
GST_PAD_TEMPLATE_GET (sink_factory));
|
|
||||||
|
|
||||||
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (factory));
|
|
||||||
|
|
||||||
return TRUE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GstPluginDesc plugin_desc = {
|
GST_PLUGIN_DEFINE (
|
||||||
GST_VERSION_MAJOR,
|
GST_VERSION_MAJOR,
|
||||||
GST_VERSION_MINOR,
|
GST_VERSION_MINOR,
|
||||||
"mp1videoparse",
|
"mpeg1videoparse",
|
||||||
plugin_init
|
"MPEG-1 video parser",
|
||||||
};
|
plugin_init,
|
||||||
|
VERSION,
|
||||||
|
GST_LICENSE,
|
||||||
|
GST_COPYRIGHT,
|
||||||
|
GST_PACKAGE,
|
||||||
|
GST_ORIGIN
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in a new issue