rtspsrc: don't send PAUSE when not connected

don't send a PAUSE request when we are no longer connected.
This commit is contained in:
Wim Taymans 2009-03-12 20:38:42 +01:00
parent 73fac6e4ea
commit 7782c9f890

View file

@ -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");