GstInterpipe: Difference between revisions

m
No edit summary
Line 166: Line 166:
=== Dynamic Switching ===
=== Dynamic Switching ===


One of the greatest strength of GstInterpipe is the ability of an interpipesrc to switch between different interpipesinks at runtime. To do so, change the ''listen-to'' property. Similarly, disconnections and reconnections can be performed by clearing and setting the property accordingly. When performing dynamic switching, caps must be taken into consideration. Specifically, a switch can be performed to a node in two scenarios:
One of the greatest strengths of GstInterpipe is the ability of an interpipesrc to switch between different interpipesinks at runtime. To do so, change the ''listen-to'' property. Similarly, disconnections and reconnections can be performed by clearing and setting the property accordingly. When performing dynamic switching, caps must be taken into consideration. Specifically, a switch can be performed to a node in two scenarios:
;No other listeners
;No other listeners
:Caps are re-negotiated between the two pipelines, looking for the optimum caps.
:Caps are re-negotiated between the two pipelines, looking for the optimum caps.