Commit ae32203c authored by Lars Wireen's avatar Lars Wireen Committed by Sebastian Dröge

rtsp-media: Fix race codition in finish_unprepare

The previous fix for race condition around finish_unprepare where the
function could be called twice assumed that the status wouldn't change
during execution of the function. This assumption is incorrect as the
state may change, for example if an error message arrives from the
pipeline bus.

Instead a flag keeping track on whether the finish_unprepare function
is currently executing is introduced and checked.

Fixes #59
parent d5ccb5a7
Pipeline #16313 passed with stages
in 15 minutes and 37 seconds