rtsp-client: make closing more thread safe
authorMathieu Duponchelle <mathieu@centricular.com>
Wed, 15 Jan 2020 16:06:41 +0000 (17:06 +0100)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 23 Jan 2020 18:08:21 +0000 (18:08 +0000)
commit90f7e851f43e83d2f8759675f0c8e9f289a8b3cf
tree1d625efc61b00592b0ed06f35cc4f004817293dc
parentb4948f69a03846559ceb0cdc41bed8ea84690474
rtsp-client: make closing more thread safe

+ Take the watch lock prior to using priv->watch
+ Flush both the watch and connection before closing / unreffing

gst_rtsp_connection_close() is not threadsafe on its own, this is
a workaround at the client level, where we control both the watch
and the connection
gst/rtsp-server/rtsp-client.c