gst/level/gstlevel.c: add proxying getcaps function, so level doesn't advertise impossible caps

Original commit message from CVS:
* gst/level/gstlevel.c: (gst_level_init):
add proxying getcaps function, so level doesn't advertise impossible
caps
This commit is contained in:
Benjamin Otte 2004-03-24 14:04:53 +00:00
parent 4e902f5346
commit 42827c7be8
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2004-03-24 Benjamin Otte <otte@gnome.org>
* gst/level/gstlevel.c: (gst_level_init):
add proxying getcaps function, so level doesn't advertise impossible
caps
2004-03-24 David Schleef <ds@schleef.org>
* gst/qtdemux/qtdemux.c: (gst_qtdemux_handle_sink_event),

View file

@ -417,10 +417,12 @@ gst_level_init (GstLevel * filter)
gst_pad_new_from_template (gst_static_pad_template_get
(&sink_template_factory), "sink");
gst_pad_set_link_function (filter->sinkpad, gst_level_link);
gst_pad_set_getcaps_function (filter->sinkpad, gst_pad_proxy_getcaps);
filter->srcpad =
gst_pad_new_from_template (gst_static_pad_template_get
(&src_template_factory), "src");
gst_pad_set_link_function (filter->srcpad, gst_level_link);
gst_pad_set_getcaps_function (filter->srcpad, gst_pad_proxy_getcaps);
gst_element_add_pad (GST_ELEMENT (filter), filter->sinkpad);
gst_pad_set_chain_function (filter->sinkpad, gst_level_chain);