Closed varsill closed 2 weeks ago
After merging https://github.com/membraneframework/membrane_core/pull/801 this issue will be solved by returning setup: :incomplete
from handle_setup/2
and setup: :complete
from a proper handle_child_setup_completed/3
Consider the following scenario: 1) There is a pipeline that spawns a bin, with bin's external pads being linked immediately 2) In the bin, on
handle_init
, an element is spawned, which setup (for instance: duration ofhandle_setup
) takes a long time (more than 5 seconds) 3) The bin goes to thesetup: :complete
mode and starts linking of its pads, which results in linking the pads externally and starting the 5000ms timeout to let the bin's children link 4) Because internal linking of the bin pads won't happen before all the bin's elements are after the setup, the linking fails after the 5000ms timeoutPossible solutions:
setup: :complete
state only if all its children are insetup: :complete
mode.