mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
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:
parent
68178a3c9a
commit
b5c4ad28c1
2 changed files with 14 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue