From 11cb1a9f925f82624009fe47f696256997cb1673 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Thu, 22 Jan 2004 13:22:02 +0000 Subject: [PATCH] fix non-compilation Original commit message from CVS: fix non-compilation --- ChangeLog | 5 +++++ gst/adder/gstadder.c | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6b91401..84f7858 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-01-22 Thomas Vander Stichele + + * gst/adder/gstadder.c: (gst_adder_link): + fix non-compile and cut-n-paste code + 2004-01-21 David Schleef * ext/swfdec/gstswfdec.c: (gst_swfdec_video_getcaps), diff --git a/gst/adder/gstadder.c b/gst/adder/gstadder.c index cbfa84b..410a9a0 100644 --- a/gst/adder/gstadder.c +++ b/gst/adder/gstadder.c @@ -209,20 +209,23 @@ static GstPadLinkReturn gst_adder_link (GstPad *pad, const GstCaps *caps) { GstAdder *adder; + GstElement *element; const GList *sinkpads; GList *remove = NULL; GSList *channels; GstPad *p; const GList *pads; + GstPadLinkReturn ret; g_return_val_if_fail (caps != NULL, GST_PAD_LINK_REFUSED); g_return_val_if_fail (pad != NULL, GST_PAD_LINK_REFUSED); - adder = GST_ADDER (GST_PAD_PARENT (pad)); + element = GST_PAD_PARENT (pad); + adder = GST_ADDER (element); pads = gst_element_get_pad_list (element); while (pads) { - GstPad *otherpad = GST_PADD (pads->data); + GstPad *otherpad = GST_PAD (pads->data); if (otherpad != pad) { ret = gst_pad_try_set_caps (otherpad, caps); -- 2.7.4