gst/gstelement.c: When activating, do src pads first, then sink pads.

Original commit message from CVS:
* 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.
This commit is contained in:
Edward Hervey 2006-01-19 18:06:18 +00:00
parent 68178a3c9a
commit b5c4ad28c1
2 changed files with 14 additions and 2 deletions

View file

@ -1,3 +1,9 @@
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:

View file

@ -2279,7 +2279,10 @@ gst_element_pads_activate (GstElement * element, gboolean active)
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);
@ -2288,7 +2291,10 @@ gst_element_pads_activate (GstElement * element, gboolean active)
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);