diff --git a/gst/gstbin.c b/gst/gstbin.c index 8890a8a333..be3a6fe30d 100644 --- a/gst/gstbin.c +++ b/gst/gstbin.c @@ -773,8 +773,6 @@ gst_bin_iterate_func (GstBin *bin) static void gst_bin_eos_func (GstBin *bin, GstElement *element) { - g_print ("eos in bin \"%s\"\n", gst_element_get_name (GST_ELEMENT (bin))); - gst_element_signal_eos (GST_ELEMENT (bin)); } diff --git a/gst/gstelement.c b/gst/gstelement.c index cd3ca33744..795e4b1970 100644 --- a/gst/gstelement.c +++ b/gst/gstelement.c @@ -442,8 +442,8 @@ gst_element_set_state (GstElement *element, GstElementState state) /* loop until the final requested state is set */ while (GST_STATE(element) != state) { /* move the curpending state in the correct direction */ - if (curpending < state) curpending++; - else curpending--; + if (curpending < state) curpending<<=1; + else curpending>>=1; /* set the pending state variable */ // FIXME: should probably check to see that we don't already have one