gstreamer/tests
Havard Graff 8b96d8ee8d rtpbin: fix shutdown crash in rtpbin
The key is to make sure the jitterbuffer is set to NULL *before* the
ptdemux.

The race that existed would basically happen when ptdemux had reached
READY, and the jitterbuffer would then push a buffer, triggering a new
pad with a new payloadtype being added and ghosted to the rtpbin itself.

However, the srcpad of the ptdemux would now be inactive, and all the
sticky-event pushed on it would be swallowed, not allowing any to reach
the ghost-pad. Then the buffer in-flight would come to the ghostpad,
and we would assert that a buffer arrived before the necessary
events.

By simply re-ordering the state-changes, we ensure that there will be
no buffer racing into the ptdemux while its state is being changed,
and the problem disappears completely.

Notice also that there is not point in disconnecting the signals on the
ptdemux before this point, since we need the push-thread to settle
down before we can do this in a non-racy way.
2019-12-20 08:27:07 +00:00
..
check rtpbin: fix shutdown crash in rtpbin 2019-12-20 08:27:07 +00:00
examples Remove autotools build system 2019-10-14 11:04:18 +01:00
files Remove autotools build system 2019-10-14 11:04:18 +01:00
icles Remove autotools build system 2019-10-14 11:04:18 +01:00
meson.build meson: don't build icles when tests are disabled 2019-02-28 08:52:28 +00:00