mirror of https://github.com/sipwise/rtpengine.git
When the `run_func()` reports the end of the playback, then the cleanup is done after dropping the call's read lock and taking the write lock. If the `play media` command restarts the player, or the `stop media` stops it in the meanwhile, the cleanup then clears the `next_run` of the new playback, which silently stops it and also lifts its `block egress`. Simplest solution is to count every stop and start/rester of the player under the write lock and then skip the cleanup if the count has changed since `run_func()` was called, means the stop has done its own cleanup and the restart has set up the new playback. Change-Id: I030b7d32c1b15aaaf81b2f56492bc3299bf6c231pull/2222/head
parent
8eb93450c3
commit
59e8f70583
Loading…
Reference in new issue