[gst-cvs] gst-plugins-good: rtspsrc: don't send PAUSE when not connected
Wim Taymans
wtay at kemper.freedesktop.org
Thu Mar 12 12:39:29 PDT 2009
Module: gst-plugins-good
Branch: master
Commit: 7782c9f890a0ebcb50797d308dab236e10600d31
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=7782c9f890a0ebcb50797d308dab236e10600d31
Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date: Thu Mar 12 20:38:42 2009 +0100
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 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c
index a0b8d5a..57d4e3a 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");
More information about the Gstreamer-commits
mailing list