summaryrefslogtreecommitdiffstats
path: root/gst/rtsp
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2009-05-24 16:33:42 +0200
committerWim Taymans <wim@metal.(none)>2009-05-24 16:33:42 +0200
commit5d3168e5582dba7c7fd0e849314233e4d5eb452c (patch)
tree1b87965d24bd6769d6aa745c0273986b96ababce /gst/rtsp
parentafbe123e3374a52458676554e7557b567173e55c (diff)
rtspsrc: don't send teardown before setup
Don't send a TEARDOWN request when we did not manage to successfully setup a stream.
Diffstat (limited to 'gst/rtsp')
-rw-r--r--gst/rtsp/gstrtspsrc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c
index feab0d71..93af6c62 100644
--- a/gst/rtsp/gstrtspsrc.c
+++ b/gst/rtsp/gstrtspsrc.c
@@ -4709,6 +4709,10 @@ gst_rtspsrc_close (GstRTSPSrc * src)
GST_DEBUG_OBJECT (src, "not connected, doing cleanup");
goto close;
}
+ if (src->state < GST_RTSP_STATE_READY) {
+ GST_DEBUG_OBJECT (src, "not ready, doing cleanup");
+ goto close;
+ }
if (src->methods & (GST_RTSP_PLAY | GST_RTSP_TEARDOWN)) {
/* do TEARDOWN */