Skip to content

splitmuxsrc: Stop pad task before cleanup

Jan Schmidt requested to merge thaytan/gstreamer:splitmuxsrc-shutdown-race into main

When stopping the element, make sure the pad task is stopped before destroying the part readers.

Closes a race where the pad task might access a freed pointer.

Also add a guard against this sort of thing by holding a ref to the reader in the pad loop.

Merge request reports