rtsp-media: Ensure the bus watch is removed during unprepare
authorDoug Nazar <nazard@nazar.ca>
Thu, 29 Apr 2021 07:07:42 +0000 (03:07 -0400)
committerDoug Nazar <nazard@nazar.ca>
Thu, 29 Apr 2021 07:07:42 +0000 (03:07 -0400)
commit274c8e6b978f71c4fcd7082dbffaf786167394b7
tree78e81d15876fff9cdaa9ba8ee6a1c6a946ef8623
parenta8a45b577651d693505e01ea6971deee1d7de78b
rtsp-media: Ensure the bus watch is removed during unprepare

It's possible for the destruction of the source to be delayed.
Instead of relying on the dispose() to remove the bus watch, do
it ourselves.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-rtsp-server/-/merge_requests/202>
gst/rtsp-server/rtsp-media.c