From 7782c9f890a0ebcb50797d308dab236e10600d31 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 12 Mar 2009 20:38:42 +0100 Subject: rtspsrc: don't send PAUSE when not connected don't send a PAUSE request when we are no longer connected. --- gst/rtsp/gstrtspsrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gst/rtsp') 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"); -- cgit