gsttestsrcbin: Avoid not-linked errors when switching tracks
authorAlicia Boya García <aboya@igalia.com>
Mon, 9 Dec 2019 16:54:02 +0000 (17:54 +0100)
committerAlicia Boya García <aboya@igalia.com>
Mon, 9 Dec 2019 17:12:29 +0000 (18:12 +0100)
commitf816903e653cd4987d697cf7153097e19970d8f3
tree62d144cd784072e6067ce647a713898c70d2c844
parent3bae199863dd782f08b6984f299d4d2543f5a2ae
gsttestsrcbin: Avoid not-linked errors when switching tracks

The previous implementation had a very high reproducibility race where
if after a track switch, the ex-active track pad completed a buffer
chain (now returning not-linked) the flow combiner had all their pads in
non-linked state, propagating it as an error and stopping the pipeline.

By resetting the flow combiner in response to RECONFIGURE events that
race is made impossible.
gst/debugutils/gsttestsrcbin.c