rtsp-client: Use watch_context before unref
authorGöran Jönsson <goranjn@axis.com>
Mon, 9 Mar 2020 13:17:34 +0000 (14:17 +0100)
committerGöran Jönsson <goranjn@axis.com>
Mon, 9 Mar 2020 13:17:34 +0000 (14:17 +0100)
commitdaa18dc867cc4b1df4cde47af411747c87fb0ef9
tree194c73defd232212161aa75a82e2a153fc0cfc3c
parent8410c69da98a5ca3f2813b4eecc24e800a4712ad
rtsp-client: Use watch_context before unref

Move the usage of priv->watch_context to beginning of function
gst_rtsp_client_finalize. Instead of use it after
g_main_context_unref (priv->watch_context).
gst/rtsp-server/rtsp-client.c