decodebin3: Issues with instant-uri switching with different inputs
When doing instant-uri switching between sources which have different number/type of media streams, decodebin3
isn't "properly" switching over to the new collection/selection
This can be reproduced with the example in #3345
The core issue is that:
-
decodebin->active_selection
isn't properly updated when streams replace other (which is used to figure out if the selection is done) - That is only updated in
-
get_output_for_slot()
if the slot doesn't have an associatedDecodebinOutputStream
(which isn't the case since we're re-using it) -
reassign_slot()
which will be called fromget_output_for_slot()
in the same conditions for a slot no longer used
-