mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 13:02:29 +00:00
client: check if watch is set in handle_teardown()
The unit tests run without a watch
This commit is contained in:
parent
bfd498585a
commit
6543082d2b
1 changed files with 4 additions and 2 deletions
|
@ -879,6 +879,7 @@ handle_teardown_request (GstRTSPClient * client, GstRTSPContext * ctx)
|
|||
|
||||
/* make sure we unblock the backlog and don't accept new messages
|
||||
* on the watch */
|
||||
if (priv->watch != NULL)
|
||||
gst_rtsp_watch_set_flushing (priv->watch, TRUE);
|
||||
|
||||
/* unlink the all TCP callbacks */
|
||||
|
@ -887,6 +888,7 @@ handle_teardown_request (GstRTSPClient * client, GstRTSPContext * ctx)
|
|||
gst_rtsp_session_media_set_state (sessmedia, GST_STATE_NULL);
|
||||
|
||||
/* allow messages again so that we can send the reply */
|
||||
if (priv->watch != NULL)
|
||||
gst_rtsp_watch_set_flushing (priv->watch, FALSE);
|
||||
|
||||
/* unmanage the media in the session, returns false if all media session
|
||||
|
|
Loading…
Reference in a new issue