rtsp-client: Only unref client watch context on finalize, to avoid deadlock
Prevent a deadlock which can be hit in calls to gst_rtsp_client_close
, related to the watch_context
, which result in the function never returning. This can be observed by using the test-video-disconnect
example.
Only unref the watch_context
on finalise, to ensure it is kept referenced until the client is finally released.