diff options
author | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2003-04-22 14:55:12 +0000 |
---|---|---|
committer | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2003-04-22 14:55:12 +0000 |
commit | 08889d7a8ffaac8e6195783d70e496ede7dea11d (patch) | |
tree | a56f1d6fa6e14b65074458b6eafa95c5564af02e /ext/xvid/gstxvidenc.c | |
parent | cb4ce3dd598b1653461f5cc1b6276812699bb5f7 (diff) | |
download | gst-plugins-bad-08889d7a8ffaac8e6195783d70e496ede7dea11d.tar.gz gst-plugins-bad-08889d7a8ffaac8e6195783d70e496ede7dea11d.tar.bz2 gst-plugins-bad-08889d7a8ffaac8e6195783d70e496ede7dea11d.zip |
Added corresponding divx/xvid decoders and fixed some first-hand encoder bugs
Original commit message from CVS:
Added corresponding divx/xvid decoders and fixed some first-hand encoder bugs
Diffstat (limited to 'ext/xvid/gstxvidenc.c')
-rw-r--r-- | ext/xvid/gstxvidenc.c | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/ext/xvid/gstxvidenc.c b/ext/xvid/gstxvidenc.c index e916bda1..7efe42f9 100644 --- a/ext/xvid/gstxvidenc.c +++ b/ext/xvid/gstxvidenc.c @@ -61,7 +61,7 @@ GST_PAD_TEMPLATE_FACTORY(src_template, "src", GST_PAD_SRC, GST_PAD_ALWAYS, - GST_CAPS_NEW("xvidenc_sink", + GST_CAPS_NEW("xvidenc_src", "video/xvid", NULL) ) @@ -191,9 +191,9 @@ gst_xvidenc_init (GstXvidEnc *xvidenc) gst_pad_set_link_function(xvidenc->sinkpad, gst_xvidenc_connect); /* create the src pad */ - xvidenc->sinkpad = gst_pad_new_from_template( - GST_PAD_TEMPLATE_GET(src_template), - "src"); + xvidenc->srcpad = gst_pad_new_from_template( + GST_PAD_TEMPLATE_GET(src_template), + "src"); gst_element_add_pad(GST_ELEMENT(xvidenc), xvidenc->srcpad); /* bitrate, etc. */ @@ -460,9 +460,9 @@ gst_xvidenc_get_property (GObject *object, } -static gboolean -plugin_init (GModule *module, - GstPlugin *plugin) +gboolean +gst_xvidenc_plugin_init (GModule *module, + GstPlugin *plugin) { GstElementFactory *factory; @@ -484,11 +484,3 @@ plugin_init (GModule *module, return TRUE; } - - -GstPluginDesc plugin_desc = { - GST_VERSION_MAJOR, - GST_VERSION_MINOR, - "xvidenc", - plugin_init -}; |