[Bug 747610] Inconsistent bin children state when a child fails to switch from NULL to READY

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Apr 15 06:18:35 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=747610

--- Comment #14 from Sebastian Dröge (slomo) <slomo at coaxion.net> ---
(In reply to Vincent Penquerc'h from comment #13)
> > But you just created it with 3 elements 5 lines above :)
> 
> Yes. So it passes. Which is good, no ? Am I missing something ?

Well, keep it then :) It seems confusing to me, I first thought that something
else was supposed to check here instead of the obviously correct thing.

> > @@ +254,3 @@
> > +
> > +  /* make the middle element fail to switch up */
> > +  GST_ELEMENT_GET_CLASS (mid[1])->change_state = fail_to_go_to_ready;
> > 
> > Here you're changing change_state for all identity elements... not just your
> > 3, but all that are ever created in the same process from this point onwards.
> 
> Doh. I'd started with elements and did not catch when I remembered it needed
> to be on the class. I'll fix that after lunch.

Enjoy lunch :) I think the best you can do here is to use a fakesink. With
async=false it can do state changes directly, and it has a property
(state-error) to have it fail specific state changes.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list