+2006-01-19 Edward Hervey <edward@fluendo.com>
+
+ * gst/gstelement.c: (gst_element_pads_activate):
+ When activating, do src pads first, then sink pads.
+ When de-activating, do sink pads first, then src pads.
+
2006-01-19 Jan Schmidt <thaytan@mad.scientist.com>
* docs/gst/gstreamer-sections.txt:
g_value_init (&ret, G_TYPE_BOOLEAN);
g_value_set_boolean (&ret, TRUE);
- iter = gst_element_iterate_src_pads (element);
+ if (active)
+ iter = gst_element_iterate_src_pads (element);
+ else
+ iter = gst_element_iterate_sink_pads (element);
fold_ok = iterator_fold_with_resync
(iter, (GstIteratorFoldFunction) activate_pads, &ret, &active);
gst_iterator_free (iter);
return FALSE;
}
- iter = gst_element_iterate_sink_pads (element);
+ if (active)
+ iter = gst_element_iterate_sink_pads (element);
+ else
+ iter = gst_element_iterate_src_pads (element);
fold_ok = iterator_fold_with_resync
(iter, (GstIteratorFoldFunction) activate_pads, &ret, &active);
gst_iterator_free (iter);