summaryrefslogtreecommitdiffstats
path: root/gst/rtsp
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2009-03-12 20:38:42 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2009-03-12 20:39:35 +0100
commit7782c9f890a0ebcb50797d308dab236e10600d31 (patch)
treeef83f09abd03a5f34e5e9d334a5b5b68d3eafceb /gst/rtsp
parent73fac6e4ea5df98afc5a04cc267b0a89b1b10ad4 (diff)
rtspsrc: don't send PAUSE when not connected
don't send a PAUSE request when we are no longer connected.
Diffstat (limited to 'gst/rtsp')
-rw-r--r--gst/rtsp/gstrtspsrc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c
index a0b8d5a3..57d4e3a0 100644
--- a/gst/rtsp/gstrtspsrc.c
+++ b/gst/rtsp/gstrtspsrc.c
@@ -4858,7 +4858,7 @@ gst_rtspsrc_pause (GstRTSPSrc * src)
GST_DEBUG_OBJECT (src, "connection is idle now");
GST_RTSP_CONN_UNLOCK (src);
- if (!src->connection)
+ if (!src->connection || !src->connected)
goto no_connection;
GST_DEBUG_OBJECT (src, "stop connection flush");