When the pipeline goes from Playing to Paused, this change will invoke unlock in the derived class. When the pipeline goes from Paused to Playing, this change will invoke unlock_stop in the derived class. This feature was removed in commit 523de1a9 and is now being restored. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4961>