rtspsrc: don't send teardown before setup

Don't send a TEARDOWN request when we did not manage to successfully setup a
stream.
This commit is contained in:
Wim Taymans 2009-05-24 16:33:42 +02:00 committed by Wim Taymans
parent afbe123e33
commit 5d3168e558

View file

@ -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 */