2,225
edits
Line 165: | Line 165: | ||
=== 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: | |||
;No other listeners | |||
:Caps are re-negotiated between the two pipelines, looking for the optimum caps. | |||
;Existing listeners | |||
:The sink pipeline must support the caps already configured by the node and listeners, otherwise it'll fail. | |||
The following figure illustrates this concept: | |||
[[File:Dynamic_switch.png|600px|framed|center|Dynamic Switch Scenarios]] | |||
=== Caps Negotiation === | === Caps Negotiation === |