diff options
author | Olivier Crete <olivier.crete@collabora.co.uk> | 2008-07-04 22:03:18 +0000 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.co.uk> | 2009-03-03 14:34:06 -0500 |
commit | 6c6a95130b80e50c5ab27c375bfe5c30b872496d (patch) | |
tree | 7a65e269f687fed7a2d755d656e8f3b70f5a6ec4 /ext | |
parent | c57073ea3d4a25e2a0295d9e192eb609fd601000 (diff) | |
download | gst-plugins-bad-6c6a95130b80e50c5ab27c375bfe5c30b872496d.tar.gz gst-plugins-bad-6c6a95130b80e50c5ab27c375bfe5c30b872496d.tar.bz2 gst-plugins-bad-6c6a95130b80e50c5ab27c375bfe5c30b872496d.zip |
[MOVED FROM GST-P-FARSIGHT] Remove useless implementation of getcaps from mimdec
20080704220318-3e2dc-d81bc59b2308c5ad0d3144030c5650295e99f3c6.gz
Diffstat (limited to 'ext')
-rw-r--r-- | ext/mimic/gstmimdec.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/ext/mimic/gstmimdec.c b/ext/mimic/gstmimdec.c index eeb95621..9810f182 100644 --- a/ext/mimic/gstmimdec.c +++ b/ext/mimic/gstmimdec.c @@ -63,8 +63,6 @@ static void gst_mimdec_finalize (GObject *object); static GstFlowReturn gst_mimdec_chain (GstPad *pad, GstBuffer *in); -static GstCaps *gst_mimdec_src_getcaps (GstPad *pad); - static GstStateChangeReturn gst_mimdec_change_state (GstElement *element, GstStateChange transition); @@ -119,7 +117,6 @@ gst_mimdec_init (GstMimDec *mimdec, GstMimDecClass *klass) mimdec->srcpad = gst_pad_new_from_template ( gst_static_pad_template_get (&src_factory), "src"); - gst_pad_set_getcaps_function (mimdec->srcpad, gst_mimdec_src_getcaps); gst_element_add_pad (GST_ELEMENT (mimdec), mimdec->srcpad); mimdec->adapter = gst_adapter_new (); @@ -344,15 +341,3 @@ gst_mimdec_change_state (GstElement *element, GstStateChange transition) return GST_ELEMENT_CLASS (parent_class)->change_state (element, transition); } - -static GstCaps * -gst_mimdec_src_getcaps (GstPad *pad) -{ - GstCaps *caps; - - if (!(caps = GST_PAD_CAPS (pad))) - caps = (GstCaps *) gst_pad_get_pad_template_caps (pad); - caps = gst_caps_ref (caps); - - return caps; -} |