diff options
author | Julien Moutte <julien@moutte.net> | 2005-10-17 15:23:24 +0000 |
---|---|---|
committer | Julien Moutte <julien@moutte.net> | 2005-10-17 15:23:24 +0000 |
commit | 55fd6600e0ed9546c9430f4ae795f66ccda8a117 (patch) | |
tree | 98ba900094fe5541074eebd224aa9094f71eec2e /ext/libpng/gstpngdec.c | |
parent | aa522287641fbd8a71ba8e353f0696c53442ecb3 (diff) |
ext/libpng/gstpngdec.c: We use fixed caps.
Original commit message from CVS:
2005-10-17 Julien MOUTTE <julien@moutte.net>
* ext/libpng/gstpngdec.c: (gst_pngdec_init): We use fixed caps.
Diffstat (limited to 'ext/libpng/gstpngdec.c')
-rw-r--r-- | ext/libpng/gstpngdec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/libpng/gstpngdec.c b/ext/libpng/gstpngdec.c index e0d2270f..c28ca86a 100644 --- a/ext/libpng/gstpngdec.c +++ b/ext/libpng/gstpngdec.c @@ -87,9 +87,7 @@ static GstStaticPadTemplate gst_pngdec_sink_pad_template = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, - GST_STATIC_CAPS ("image/png, " - "width = (int) [ 16, 4096 ], " - "height = (int) [ 16, 4096 ], " "framerate = (double) [ 0.0, MAX ]") + GST_STATIC_CAPS ("image/png") ); static void @@ -124,10 +122,12 @@ gst_pngdec_init (GstPngDec * pngdec) { pngdec->sinkpad = gst_pad_new_from_template (gst_static_pad_template_get (&gst_pngdec_sink_pad_template), "sink"); + gst_pad_use_fixed_caps (pngdec->sinkpad); gst_element_add_pad (GST_ELEMENT (pngdec), pngdec->sinkpad); pngdec->srcpad = gst_pad_new_from_template (gst_static_pad_template_get (&gst_pngdec_src_pad_template), "src"); + gst_pad_use_fixed_caps (pngdec->srcpad); gst_element_add_pad (GST_ELEMENT (pngdec), pngdec->srcpad); gst_pad_set_chain_function (pngdec->sinkpad, gst_pngdec_chain); |