Original commit message from CVS:
Also swap the args in the callback function
static gboolean gst_bin_change_state_type (GstBin *bin,
GstElementState state,
GType type);
static gboolean gst_bin_change_state_type (GstBin *bin,
GstElementState state,
GType type);
-static void gst_bin_child_state_change (GstBin *bin, GstElementState old,
- GstElementState new, GstElement *child);
+static void gst_bin_child_state_change (GstElement *child, GstElementState old,
+ GstElementState new, GstBin *bin);
static gboolean gst_bin_iterate_func (GstBin *bin);
static gboolean gst_bin_iterate_func (GstBin *bin);
-gst_bin_child_state_change (GstBin *bin, GstElementState old, GstElementState new, GstElement *child)
+gst_bin_child_state_change (GstElement *child, GstElementState old, GstElementState new, GstBin *bin)
{
gint old_idx = 0, new_idx = 0, i;
{
gint old_idx = 0, new_idx = 0, i;
- // FIXME, need to setup this array at add/remove time
- if (i<0) {
- GST_STATE_PENDING (bin) = GST_STATE_NULL;
- gst_bin_change_state_norecurse (bin);
- }