fix non-compilation
authorThomas Vander Stichele <thomas@apestaart.org>
Thu, 22 Jan 2004 13:22:02 +0000 (13:22 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Thu, 22 Jan 2004 13:22:02 +0000 (13:22 +0000)
Original commit message from CVS:
fix non-compilation

ChangeLog
gst/adder/gstadder.c

index 6b91401..84f7858 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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),
index cbfa84b..410a9a0 100644 (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);