Skip to content

[gstswitchbin] visit paths until gst_switch_bin_switch_to_path succeeds

If more than one path is compatible with caps, loop through all path (with order priority) until one can successfully link

Before this MR, the following pipeline would fail:

  • path0 would have been chosen based on the caps
  • gst_element_link would fail

gst-launch-1.0 videotestsrc ! "video/x-raw, format=v210" ! switchbin num-paths=2 path0::element="queue" path1::element="videoconvert ! queue" ! "video/x-raw, format=RGB" ! fakesink

The feature is usefull when one wants to provide several paths to be tried until one is able to link

Merge request reports