Original commit message from CVS:
2005-10-06 Thomas Vander Stichele <thomas at apestaart dot org>
* gst/gstghostpad.c: (gst_ghost_pad_internal_do_activate_push):
add push activation of sink ghost pads.
Andye, please verify
+2005-10-06 Thomas Vander Stichele <thomas at apestaart dot org>
+
+ * gst/gstghostpad.c: (gst_ghost_pad_internal_do_activate_push):
+ add push activation of sink ghost pads.
+ Andye, please verify
+
2005-10-05 Thomas Vander Stichele <thomas at apestaart dot org>
* gst/gstutils.c: (gst_element_link_pads):
gboolean ret;
if (GST_PAD_DIRECTION (pad) == GST_PAD_SINK) {
- g_critical ("how did I get here?");
+ GstPad *parent = GST_PAD (gst_object_get_parent (GST_OBJECT (pad)));
+
+ if (parent) {
+ g_return_val_if_fail (GST_IS_GHOST_PAD (parent), FALSE);
+
+ ret = gst_pad_activate_push (parent, active);
- ret = FALSE;
+ gst_object_unref (parent);
+ } else {
+ ret = FALSE;
+ }
} else {
GstPad *peer = gst_pad_get_peer (pad);