rtspsrc: don't send PAUSE when not connected
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 12 Mar 2009 19:38:42 +0000 (20:38 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 12 Mar 2009 19:39:35 +0000 (20:39 +0100)
don't send a PAUSE request when we are no longer connected.

gst/rtsp/gstrtspsrc.c

index a0b8d5a..57d4e3a 100644 (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");