fix non-compilation

Original commit message from CVS:
fix non-compilation
This commit is contained in:
Thomas Vander Stichele 2004-01-22 13:22:02 +00:00
parent 75da519525
commit 11cb1a9f92
2 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2004-01-22 Thomas Vander Stichele <thomas at apestaart dot org>
* gst/adder/gstadder.c: (gst_adder_link):
fix non-compile and cut-n-paste code
2004-01-21 David Schleef <ds@schleef.org>
* ext/swfdec/gstswfdec.c: (gst_swfdec_video_getcaps),

View file

@ -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);