From 55fd6600e0ed9546c9430f4ae795f66ccda8a117 Mon Sep 17 00:00:00 2001 From: Julien Moutte Date: Mon, 17 Oct 2005 15:23:24 +0000 Subject: [PATCH] ext/libpng/gstpngdec.c: We use fixed caps. Original commit message from CVS: 2005-10-17 Julien MOUTTE * ext/libpng/gstpngdec.c: (gst_pngdec_init): We use fixed caps. --- ChangeLog | 4 ++++ ext/libpng/gstpngdec.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3fc9a420a6..df5959a505 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-10-17 Julien MOUTTE + + * ext/libpng/gstpngdec.c: (gst_pngdec_init): We use fixed caps. + 2005-10-17 Julien MOUTTE * gst/videobox/gstvideobox.c: (gst_video_box_transform_caps), diff --git a/ext/libpng/gstpngdec.c b/ext/libpng/gstpngdec.c index e0d2270f63..c28ca86ae9 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); -- 2.34.1