mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
Negotiation fixes
Original commit message from CVS: Negotiation fixes
This commit is contained in:
parent
6c1b114eed
commit
e9f6be3a04
2 changed files with 12 additions and 17 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
2004-01-01 David Schleef <ds@schleef.org>
|
||||
|
||||
Negotiation fixes:
|
||||
* gst-libs/gst/audio/gstaudiofilter.c: (gst_audiofilter_link),
|
||||
(gst_audiofilter_init):
|
||||
* gst/debug/efence.c: (gst_efence_init):
|
||||
* gst/deinterlace/gstdeinterlace.c: (gst_deinterlace_link),
|
||||
(gst_deinterlace_init):
|
||||
* gst/volume/gstvolume.c: (volume_connect):
|
||||
|
||||
2004-01-01 David Schleef <ds@schleef.org>
|
||||
|
||||
Convert elements to use gst_pad_use_explicit_caps() where
|
||||
|
|
|
@ -101,21 +101,6 @@ void *gst_fenced_buffer_alloc(GstBuffer *buffer, unsigned int length,
|
|||
|
||||
GstBuffer *gst_fenced_buffer_new(void);
|
||||
|
||||
static GstPadLinkReturn
|
||||
gst_efence_link (GstPad *pad, const GstCaps *caps)
|
||||
{
|
||||
GstEFence *filter;
|
||||
GstPad *otherpad;
|
||||
|
||||
filter = GST_EFENCE (gst_pad_get_parent (pad));
|
||||
g_return_val_if_fail (filter != NULL, GST_PAD_LINK_REFUSED);
|
||||
g_return_val_if_fail (GST_IS_EFENCE (filter),
|
||||
GST_PAD_LINK_REFUSED);
|
||||
otherpad = (pad == filter->srcpad ? filter->sinkpad : filter->srcpad);
|
||||
|
||||
return gst_pad_try_set_caps (otherpad, caps);
|
||||
}
|
||||
|
||||
GType
|
||||
gst_gst_efence_get_type (void)
|
||||
{
|
||||
|
@ -184,10 +169,10 @@ gst_efence_init (GstEFence *filter)
|
|||
{
|
||||
filter->sinkpad = gst_pad_new_from_template (
|
||||
gst_static_pad_template_get(&gst_efence_sink_factory), "sink");
|
||||
gst_pad_set_link_function (filter->sinkpad, gst_efence_link);
|
||||
gst_pad_set_link_function (filter->sinkpad, gst_pad_proxy_pad_link);
|
||||
filter->srcpad = gst_pad_new_from_template (
|
||||
gst_static_pad_template_get(&gst_efence_src_factory), "src");
|
||||
gst_pad_set_link_function (filter->srcpad, gst_efence_link);
|
||||
gst_pad_set_link_function (filter->srcpad, gst_pad_proxy_pad_link);
|
||||
|
||||
gst_element_add_pad (GST_ELEMENT (filter), filter->sinkpad);
|
||||
gst_element_add_pad (GST_ELEMENT (filter), filter->srcpad);
|
||||
|
|
Loading…
Reference in a new issue